loading...

re: A beginners' introduction to Ruby classes and objects VIEW POST

FULL DISCUSSION
 

Really good post Rémi 👍

I found a small typo, wood should be Wood in:

# It even works with your own classes
wood = Struct.new(:species)
Wood.new('mapple').class # => Wood
code of conduct - report abuse