I am currently experimenting with Ruby and Rails, and I\'ve hit a few sections in tutorials and books about metaprogramming.Many mention that it is an essential component of Ruby but they don\'t reall
Which information sources describe best Ruby\'s eigenclasses? I have read the following: (see an extra page)
Are class methods and methods in the eigenclass (or metaclass) of that class just two ways to define one thing?
I was trying to limit the instantiation of a class to just a single one(without using singleton) but i couldn\'t. I tried with class variables (@@) but without luck.