From: James Edward Gray II Date: 2006-12-21T06:52:02+09:00 Subject: Re: reflecting on objects without creating one On Dec 20, 2006, at 3:40 PM, _Kevin wrote: > Let's say I have two constants > > a = Integer > b = Numeric > > Does anyone have any idea how to see if 'a' is a subclass of 'b' > WITHOUT creating an object of class 'a'? >> A = Integer => Integer >> B = Numeric => Numeric >> A.ancestors.include? B => true Hope that helps. James Edward Gray II