The Crystal programming language | http://crystal-lang.org | Fund Crystal's development: http://is.gd/X7PRtI | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/
Bool | Nil
, but I guess it would be true only in the first branch and false | nil in the second
JSON::Serializable
and create a general class, which consumes any json string and returns Hash representation.crystal spec --help
. Because it's a runtime option, you currently only get the help by building and runnning the spec (crystal spec -- --help
)
self.parent_method
and super
wont work because its not the same method
::parent_method
would do it?
super.parent_method
doesnt work either
Unhandled exception in spawn: Closed stream (IO::Error)
from /home/jonathan/.asdf/installs/crystal/1.0.0/share/crystal/src/io.cr:118:5 in 'check_open'
from /home/jonathan/.asdf/installs/crystal/1.0.0/share/crystal/src/io/buffered.cr:100:5 in 'peek'
from /home/jonathan/.asdf/installs/crystal/1.0.0/share/crystal/src/io.cr:622:37 in 'gets'
from /home/jonathan/.asdf/installs/crystal/1.0.0/share/crystal/src/io.cr:595:5 in 'gets'
from /home/jonathan/.asdf/installs/crystal/1.0.0/share/crystal/src/io.cr:565:5 in 'gets'
from /home/jonathan/.asdf/installs/crystal/1.0.0/share/crystal/src/io.cr:564:3 in 'gets'
from src/lib/irc.cr:160:5 in 'get_response'
from src/lib/irc.cr:33:9 in 'initialize'
from src/lib/irc.cr:22:3 in 'new'
from config/application.cr:83:3 in '->'
from /home/jonathan/.asdf/installs/crystal/1.0.0/share/crystal/src/primitives.cr:255:3 in 'run'
from /home/jonathan/.asdf/installs/crystal/1.0.0/share/crystal/src/fiber.cr:92:34 in '->'
from ???