Re: [Rails] why doesn't an instance of Object get Class's new instance method?

2012-01-21 Thread Peter Vandenabeele
On Sat, Jan 21, 2012 at 9:03 PM, John Merlino wrote: > "Object is the root of Ruby's class hierarchy. Its methods are > available to all classes unless explicitly overridden." > > Wouldn't Class class be at the root of the class hierarchy? > > > After all, look at this: > > 1.9.2p290 :006 > Objec

[Rails] why doesn't an instance of Object get Class's new instance method?

2012-01-21 Thread John Merlino
"Object is the root of Ruby's class hierarchy. Its methods are available to all classes unless explicitly overridden." Wouldn't Class class be at the root of the class hierarchy? After all, look at this: 1.9.2p290 :006 > Object.instance_of? Class => true Object is an instance of class, after