From: Sam Kong Date: 2006-01-26T02:08:12+09:00 Subject: Re: Metaclass confusion Hi, Vivek wrote: > Hi, > can someone explain this. > > irb(main):013:0> Class.instance_methods > => ["superclass", "new"] > irb(main):014:0> Class.class > => Class > > I guess Class is an object(an instance of Class?) but its of type > Class. How can an object's type be an object itself.? The following doc helped me understand Ruby object model pretty well. Understanding Ruby's Object Model [ ChrisPine_UROM.ppt ] (http://www.ruby-doc.org/docs/Understanding%20Ruby's%20Object%20Model/ChrisPine_UROM.ppt) at http://www.ruby-doc.org/whyruby/ Hope this helps. Sam