The Twofold Class Hierarchy in Ruby
Let’s get the naming thing out of our way first: metaclasses, virtual classes or eigenclasses all refer to the same thing. Since Ruby 1.9.2, Object has a method #singleton_class, and that is how I will call it for the rest of this post. The proximity to the Singleton Pattern is… Continue Reading The Twofold Class Hierarchy in Ruby