From: Christian Neukirchen Date: 2006-01-12T04:25:27+09:00 Subject: Re: how can I give a name to an anonymous class gwtmp01@mac.com writes: > On Jan 11, 2006, at 10:38 AM, sayoyo@yahoo.com wrote: >> const_set("#{className.to_s}", genClass) > > Just change this to: > > Object.const_set("#{className.to_s}", genClass) Object.const_set(className.to_s, genClass) I think we should have "useless use of #{}"-awards. ;-) > So that the constant is placed in the top-level instead of > in your class. > > > Gary Wright -- Christian Neukirchen http://chneukirchen.org