From: Mathieu Bouchard Date: 2001-10-29T14:21:07+09:00 Subject: [ruby-talk:23711] Re: Singleton methods and instance methods with same name? On Sun, 28 Oct 2001, Jim Freeze wrote: > On Sun, 28 Oct 2001, Mathieu Bouchard wrote: > > btw, try this: > > (Object.methods & Object.new.methods).length #==> 38 > irb(main):001:0> (Object.methods & Object.new.methods).length > 37 The conclusion is that no matter which class object you choose, many methods are named the same in it and in all of its potential instances, because of the inheritance of the Object class itself, and because Class inherits from Object. ________________________________________________________________ Mathieu Bouchard http://hostname.2y.net/~matju