From: "Iñaki Baz Castillo" Date: 2009-04-07T07:41:50+09:00 Subject: Re: class C < B < A El Martes 07 Abril 2009, Joel VanderWerf escribió: > Iñaki Baz Castillo wrote: > > Hi, I have this case: > > > > class A ; end > > class B < A ; end > > class C < B ; end > > > > a = A.new > > b = B.new > > c = C.new > > > > > > I look for a way (***) to get the following results: > > ... > > #instance_of? works for all cases except: > > c *** B => true > > Are you sure you need this to be true? Yes. Basically A is String and B is a child of String with various methods, and C is a more specific class. But I didn't realize of #instance_of?, I will try with it. Thanks. -- Iñaki Baz Castillo