From: Tokomar Reid Date: 2002-08-27T04:20:14+09:00 Subject: Re: Getting list of classes in a module? Philip Mak wrote: > How do I get the list of all classes that are defined in a module > (from inside a Ruby program)? > > My current solution is using ObjectSpace.each_object(Class), which > gets every class defined in the whole program, but then I have to > filter it to get just the classes in a particular module, and this > doesn't seem like the right way of doing it. import inspect -- Tokomar