From: Paul Gregory Date: 2002-11-21T04:33:07+09:00 Subject: Re: Need help dynamically creating classes. ts wrote: >>>>>>"t" == ts writes: >>>>> > > t> class << self; self end.send(:attr_accessor, k) > > This is stupid, there is a better way > Spot on! Thanks, that is exactly the sort of thing I'm after. In case you are interested in what I am trying to achieve, I am trying to make a procedural animation system based around Renderman. Similar in principle to WavesWorld by Michael B. Johnson, and AL my Steve May. Basincally you define your objects in terms of code segments, which (when I get round to this bit) have links to avars (animated variables) which can be altered over time by various methods, then by adjusting these avars, and regenerating the scene sections which rely on them, you get a powerful animation system. Long way off yet tho' still just planning and throwing ideas around. cheers PaulG