From: The Sun Date: 2012-10-24T19:25:52+09:00 Subject: Dynamically creating subclasses Hi, I have to dynamically create a number of classes with different names. All of them have to inherit from the same subclass. I tried the following: eval(class myName < ParentClass; end) where myName is a String dynamically set together or the same without eval. In fact i succeeded in creating objects of the new classes (myName.new) and the name seems to be set right, but the instantiation does not call the parents constructor. Can you point to my mistake? Thanks sun -- Posted via http://www.ruby-forum.com/.