|
|
|
|
|
by vidarh
5121 days ago
|
|
His summary of the object hierarchy of Ruby is probably more confusing than elucidating to most Ruby beginners, since he doesn't make it very clear that he's dealing with the distinction between instances and classes (which are themselves instances of Class). From the description it seems like he doesn't quite get the distinction himself, and one of the later examples is broken: "Array.new.methods - Object.methods" should read "Array.new.methods - Object.new.methods". Otherwise he's in fact subtracting the methods available on an error instance from the methods available on an instance of Class, not the methods available on a generic object.. |
|
You are wrong, classes are objects :)