From: "Peña, Botp" Date: 2008-09-03T11:05:34+09:00 Subject: Re: Class.descendant_of? From: Ben Johnson [mailto:bjohnson@contuitive.com] # Is there a method that will return true if the class is a # descendant of that class? descendant is quite a generic term ;) compare, B.ancestors.map {|b| [b, B < b]} #=> [[B, false], [A, true], [Object, true], [Kernel, true]] B.ancestors.map {|b| [b, B.superclass == b]} #=> [[B, false], [A, true], [Object, false], [Kernel, false]] kind regards -botp