From: Charles Thornton Date: 2006-11-28T05:36:25+09:00 Subject: Re: [ ruby-Bugs-6820 ] #ancestors never includes the singleton class (inconsistent) Sylvain Joyeux wrote: >> It is supposed to. Singleton classes (or eigenclasses, if you want to >> call them) are not real classes, they are placeholders for per object >> attributes, so that they are not covered by #ancestors. >> >> matz. >> > And, out of curiosity, why do you want that ? The singleton classes look > like the "class of a single object" in (almost) every way. In 1.9 you > event made it inherit the "real" class of the object. So, why keeping this > kind of reminder that we can't manipulate singleton classes like any other > class ? > > (btw, I'm posting that because I had to implement my own ancestors-like > method ...) > So dit I (my_ancestors) for various purposes ;-) cet