Thanks to Arlen andXavier,

I now got it working, using the non eval approach.

name = "DynamicName1"
class = Class.new(ParentClass)
Object.const_set name, class
class.new

Great to be able to do this!

sun

-- 
Posted via http://www.ruby-forum.com/.