3 ms·
I'm sorry to be critical but this article is a dangerously incomplete treatment. For instance, methods only exist on classes. And there's no mention of the sin
by sleight42 15y ago
I'm sorry to be critical but this article is a dangerously incomplete treatment.
For instance, methods only exist on classes. And there's no mention of the singleton class whatsoever.
For a more accurate lesson, watch Dave Thomas, author of the "Pickaxe" Programming Ruby book, present on the Ruby Object Model: http://scotland-on-rails.s3.amazonaws.com/2A04_DaveThomas-SOR.mp4 http://scotland-on-rails.s3.amazonaws.com/2A04_DaveThomas-SO...
- skilldrick 15y ago> Note that this is a basic explanation, and glosses over higher-level concepts like the eigenclass/metaclass (I’ll leave that for a later post).
- blaix 15y agoGlossing over those things misses the entire point. Not worth posting without it. The videos mentioned in the parent comment get it so right. Highly recommended.