From: Rick DeNatale Date: 2009-09-04T05:20:11+09:00 Subject: Re: Class#descendants? On Thu, Sep 3, 2009 at 3:30 PM, Duck Typist wrote: > Tony Arcieri wrote: >> Oi, good catch. >> >> So the question remains... can this be done without ObjectSpace? > > Yes, if you're willing to accept the monkeypatch on Class: > > http://pastie.org/604847 Try that code with p Object.descendants Your inherited hook is too late. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale