From: Joel VanderWerf Date: 2006-04-11T11:21:03+09:00 Subject: Re: Identfying classes in a file dynamically dblack@wobblini.net wrote: ... > Also I think that if the read-in file uses the ::Const construct, > those classes won't get counted. You mean like this: $ cat t.rb class ::Foo end $ ruby -e 'load "t.rb"; p Foo' Foo $ ruby -e 'load "t.rb"; ObjectSpace.each_object(Class) {|c| p c if c.name == "Foo"}' Foo So it doesn't look like that works, unless I'm misunderstanding... -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407