Diving into ruby object model : Part 2

Understanding the “chain” In my last article, I explained where the various elements of an object were located. Now it’s time to understand what happens at run time when you write the following :

Ahh… A method call! Ruby knows what to do in this situation. Remember that inside “obj” resides a reference to [...]

Continue reading →

Diving into ruby object model : Part 1

So far I’ve talked about how everything was an object in ruby, even classes. I also wrote an article explaining what were the most important steps to follow when trying to understand ruby classes and objects. This wasn’t a bad idea, but it was a rather simplistic view. I think we’re ready to dive into [...]

Continue reading →