First page Back Continue Last page Overview Text

Notes:


(5 seconds)

So how do singleton classes of singleton classes fit into ruby's class system?

In this diagram, the yellow lines represent superclass relationships, and the cyan lines represent singleton class relationships.

It turns out that the superclass of a singleton class of a singleton class of a class is the singleton class of the class named Class. This is true for all levels of singleton classes of singleton classes of classes.