On 24 April 2010 18:58, Gavin Sinclair <[email protected]> wrote: > > >> Indeed it is. >> >> >> Object.is_a?(Object) >> => true >> >> Class.is_a?(Class) >> => true >> >> Class.is_a?(Object) >> => true >> >> Object.is_a?(Class) >> => true >> >> Therefore, everything is everything. >> > > Um, I think that boils down to > > def is_a?(arg) > true > end > > ;) >
Ah, but! >> Class.new.is_a?(Object) => true >> Object.new.is_a?(Class) => false :) —ben_h -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" 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/rails-oceania?hl=en.
