The focus of this article will be on one of the more ethereal and little-discussed properties of Singleton Classes namely an answer to the question: “What is the class of a singleton class?”. Exactly this question was asked in chapter 4 of the Ruby Hacking Guide; and the answer was purportedly depicted by the following [...]
Filed under: C, metaprogramming, programming, ruby | Tagged: eigenclass, metaclass, ruby, ruby C API, ruby class diagram, ruby hacking, ruby singleton, ruby singletons, singleton class, singletons | 4 Comments »