November 2013
Intermediate to advanced
360 pages
9h 7m
English
Inside of Ruby, modules are classes.
As we saw in Chapter 5, classes play an important role in Ruby, holding method definitions and constant values, among other things. We also learned how Ruby implements inheritance using the super pointer in each RClass structure.
In fact, as your program grows, you might imagine it organized by class and superclass, creating a kind of giant tree structure. At the base is the Object class (or, actually, the internal BasicObject class). This class is Ruby’s default superclass, and all of your classes appear somewhere higher up in the tree, branching out in different directions. ...
Read now
Unlock full access