On Thu, Feb 20, 2003 at 06:52:40AM +0900, Matt Armstrong wrote: > I wouldn't be averse to using the string version of eval for this. By > creating the class beforehand you can minimize the time spent in it > and thereby make the code easier to understand. > > class = Class.new > class_name = "Foo" > eval("#{class_name} = class") That's neat, thank you. Some more stuff falls into place :-) I can see the futility of choosing the names of constants dynamically! Much better to stick all my newly-created classes into a hash and reference them from that. Thanks again, Brian.