From: "Iñaki Baz Castillo" Date: 2009-04-07T07:54:31+09:00 Subject: Re: class C < B < A El Martes 07 Abril 2009, Siep Korteling escribió: > Iñaki Baz Castillo wrote: > > a) > > a *** A => true > > a *** B => false > > a *** C => false > > > > b) > > b *** A => false (*1) b.kind_of? A => true > > b *** B => true > > b *** C => false > > > > c) > > c *** A => false (*2) c.kind_of? A => true > > c *** B => true > > c *** C => true > > (...) > > > Thanks a lot. > > The method #kind_of? gives the results you want. Not in the above cases. It's the same as using === :( -- Iñaki Baz Castillo