From: Tokomar Reid Date: 2002-08-27T04:20:17+09:00 Subject: Re: Getting list of classes in a module? Tokomar Reid wrote: > 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 Major apologies. I forgot to check the name of the newsgroup before posting. That's Python. -- Tokomar