From: ara.t.howard@... Date: 2006-08-04T03:05:39+09:00 Subject: Re: Creating Classes at runtime On Fri, 4 Aug 2006, David Stokar wrote: > David Stokar wrote: > it works like this (just copy and paste) i thought i'd chime in here and point out that the idea of this is flawed: if you know the name of the class you want to generate, let's say 'MyClass', and you also want to refer to it via the bareword constant MyClass then you can simply do class MyClass; end and later class MyClass def an_added_method # ... end end the point being that, unless you are going to __also__ going retrieve you classes via the string name, as in c = const_get 'MyClass' obj = c::new not c = create_class 'MyClass' obj = MyClass.new then you do not need to dynamically create classes by name since the name is know apriori perhaps i misunderstodd the OP, but the question did suggest a flawed design. regards. -a -- we can never obtain peace in the outer world until we make peace with ourselves. - h.h. the 14th dali lama