From: Sebastian Hungerecker Date: 2008-02-07T15:37:09+09:00 Subject: Re: Dynamically instantiate a class macaco wrote: >    type = ['subClass1','subClass2'] > >   def create_class(var) >     #instantiate class type[var] >     newClass = type[var].new # ????? >   end If you change the first line into type = [SubClass1, SubClass2] #without quotes the above works as-is. HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826