Hi! I'm using Ruby 1.8. Object.class.methods.length #->74 Object.methods.length #->73 Object.class is Class. Object is type of Class. I'm still confused with class and object and metaclass... Sam "wilkes joiner" <wilkesjoiner / gmail.com> wrote in message news:b832a2c7040621165233d5a0a5 / mail.gmail.com... > What version of Ruby are you running? From irb, > Object.class.methods.length return 74. > > Instances of Object and Class should not necessarily have the same > number of methods, but Object.class and Class.class should since they > both return an instance of Class. The exception being somewhere > someone added or a removed a method from the instance of Class > returned by Object.class. > > On Tue, 22 Jun 2004 05:08:21 +0900, Sam Sungshik Kong > <ssk / chol.nospam.net> wrote: > > > > Hello! > > > > I found a strange thing. > > > > Object.class > > =>Class > > Class.class > > =>Class > > > > As you see, Object and Class are of same type. > > > > Object.methods.length > > =>73 > > Class.methods.length > > =>74 > > Class.methods - Object.methods > > =>["nesting"] > > > > I expected that Object has same methods as Class but it's not. > > Can somebody explain and teach me please? > > > > Thanks in advance. > > > > kong > > > > > >