Anurag Priyam wrote in post #972264:
I guess that a singleton class always exists for
> an object, whether a singleton method for that object exists or not.

Sure, singleton class always be there, and it inserted in the 
inheritance chain before the objects "real" class when the first we need 
it. But I would like to generate a diagram of an object's ancestors, if 
the object has used singleton class, then it will show in diagram, but 
it doesn't if object hasn't used singleton class yet.

-- 
Posted via http://www.ruby-forum.com/.