August 2014
Intermediate to advanced
250 pages
6h 20m
English
Where you find your way around the Ruby object model.
Back in The Truth About Classes, Bill showed you how objects and classes are related. As an example, he used a snippet of code and this whiteboard diagram:

| | class MyClass; end |
| | obj1 = MyClass.new |
| | obj2 = MyClass.new |
The diagram shows some of the connections between the program entities. Now it’s your turn to add more lines and boxes to the diagram and answer these questions:
| | obj3 = MyClass.new |
| | obj3.instance_variable_set("@x", 10) ... |