Open renich opened 4 years ago
Besides the exception in the playground, the Mineral#to_s
definition should be an instance method with an io argument
def to_s(io : IO)
io << "#{common_name}, #{hardness}, #{crystal_struct}"
end
Yep, thanks. Got confused with the instructions of the book (in which you wrote a foreword ;D)
Submitting bugs
Crystal playground told me to report this. Here's what it's giving me
My OS: Fedora 32 My Crystal version: