From: The Sun Date: 2012-10-24T21:52:51+09:00 Subject: Re: Dynamically creating subclasses 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/.