From: Eugene Scripnik Date: 2003-01-04T00:29:05+09:00 Subject: toplevel modules and classes How do I get all defined toplevel modules and classes? I can do it for specific module/class like in sample below, but can't figure out how to do it in toplevel context: module Foo module A end module B end module C end end p Foo.constants # ["A", "B", "C"] -- Best regards, Eugene [team Enticla] mailto:Eugene.Scripnik@itgrp.net