From: Aaron Patterson Date: 2010-02-02T06:06:57+09:00 Subject: Re: Module children On Tue, Feb 02, 2010 at 04:50:34AM +0900, Camille Roux wrote: > Hello, > > I'd like to get the list of all the classes contained in a module. > What's the simple way to do that? >> module Foo; A = 1; class B; end; module C; end end => nil >> Foo.constants.find_all { |k| Class === Foo.const_get(k) } => ["B"] -- Aaron Patterson http://tenderlovemaking.com/