Closed zatherz closed 8 years ago
Crystal 0.19.0 removed the special cast syntax (var as Type) in favor of the method (var.as(Type)).
var as Type
var.as(Type)
Reformatted initially using crystal tool format, which fixed most of the errors, then hand-fixed the left over special as syntax casts.
crystal tool format
as
Also fixed examples. In the crgallery example I converted hardcoded paths to File.join(__DIR__, "whatever").
crgallery
File.join(__DIR__, "whatever")
Thanks. That's a good change. I should be more careful with Crystal's formatting rules.
Crystal 0.19.0 removed the special cast syntax (
var as Type
) in favor of the method (var.as(Type)
).Reformatted initially using
crystal tool format
, which fixed most of the errors, then hand-fixed the left over specialas
syntax casts.Also fixed examples. In the
crgallery
example I converted hardcoded paths toFile.join(__DIR__, "whatever")
.