From: Trans Date: 2007-09-13T03:06:10+09:00 Subject: Re: Singleton Modules rather than Singleton Classes On Sep 11, 1:55 am, "Robert Klemme" wrote: > I'd generally prefer to define modules explicitly and extend classes > with them as Ara suggested. IMHO that's a cleaner way to achieve what > you want and it also documents things more nicely (especially you can > look at inheritance etc.). My 0.02EUR That is simply not correct. Fist of all, you do not control all code, so you can not make someone else modularized their module's class- level methods, so you can later augment them with meta-code. Secondly, the primary point has nothing to do with the fact that one can manage workarounds, of course there are ways, but b/c of limitations they are fragile and inefficient. Lastly, you are missing the point when you you say, "prefer to define modules explicitly... that's a cleaner way to achieve what you want". That's not the issue. Again, I encourage you to have a look as Facets' inheritor.rb lib to get a better understanding of this. T.