From: Sandro Paganotti Date: 2008-11-19T18:10:08+09:00 Subject: Re: Is there a way to know what are the subclasses of a given class ? ------=_Part_115035_29963830.1227086029249 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline [SOLVED] I just find out that you can call: A.constants --> ["B","C"] Thank you Sandro On Wed, Nov 19, 2008 at 10:10 AM, Sandro Paganotti < sandro.paganotti@gmail.com> wrote: > Hello > > Do you know if there's a trick to retrieve a list of all the subclasses of > a given class ? > > class A > class B > end > class C > end > end > > like A.subclasses --> [B,C] ? > > Thanks > Sandro > > -- > sandropaganotti.com > -- Go outside! The graphics are amazing! ------=_Part_115035_29963830.1227086029249--