From: Bertram Scharpf Date: 2005-03-10T08:33:24+09:00 Subject: Re: Object#inspect's output Hi, Am Donnerstag, 10. M�r 2005, 03:10:57 +0900 schrieb Joel VanderWerf: > Bertram Scharpf wrote: > >I want to understand thoroughly how singleton objects are > >implemented. I try this: > > > > class C ; end > > > > puts C.inspect # => C > > puts class < # > > The second object is the metaclass of C. There's a good explanation of > metaclasses in the PickAxe book. Ah, I see. class C ; def self.clsmeth() end end # => nil class < ["clsmeth"] Thanks. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de