From: Todd Benson Date: 2008-09-03T10:31:54+09:00 Subject: Re: Class.descendant_of? On Tue, Sep 2, 2008 at 8:14 PM, Ben Johnson wrote: > Noob question: > > class A; end > class B < A; end > > B.kind_of?(A) > > Is there a method that will return true if the class is a descendant of > that class? > > Thanks for your help. class A; end class B < A; end B.ancestors.include?(A) => true Todd