From: Devin Mullins Date: 2005-06-24T10:38:56+09:00 Subject: Re: string to Class object Good question. A crappy way: ObjectSpace.each_object {|obj| break obj if Class === obj and obj.name == clazz } But I'm still young. There might be a non-crappy way. Devin R. Mark Volkmann wrote: >How can I create a Class object from a String that contains the name of a class? >For example, after > >clazz = Array > >the variable clazz holds a Class object representing the class Array. >I want to start with a string like this. > >name = 'Array' >clazz = ??? > >-- >R. Mark Volkmann >Partner, Object Computing, Inc. > > > >