From: Sylvain Joyeux Date: 2006-11-27T23:57:21+09:00 Subject: Re: [ ruby-Bugs-6820 ] #ancestors never includes the singleton class (inconsistent) > 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 ...) -- Sylvain Joyeux