From: Hal Fulton Date: 2006-05-07T15:01:07+09:00 Subject: Re: Creating sub-classes using Struct Eli Bendersky wrote: > > Excellent ! const_set is what I was missing to get my solution working. > No more "dynamic constant assignment" errors for me :-) > FWIW, you can look at Superstruct which I wrote awhile back. Disclaimer: I think it has bugs not caught by the unit tests. Also the code is probably not very pretty in places. As I recall it's at: http://sstruct.rubyforge.org Cheers, Hal