On May 13, 10:43 pm, John Merlino <[email protected]> wrote:
> > If a class is an object and an object is a class: > > ruby-1.8.7-p330 :039 > Class.kind_of? Object > => true > ruby-1.8.7-p330 :040 > Object.kind_of? Class > => true Wrong - not all objects are classes. Object is an instance of Class, but instances of Object aren't i.e. Object.kind_of? Class is the wrong test - Object.new.kind_of?(Class) (or in your specific example, Peach.new.kind_of?(Class)) is the relevant one. Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

