From: Ben Harper Date: 2006-09-23T17:21:39+09:00 Subject: Re: How do I instantiate a class who's name is dynamic? Ben Harper wrote: > I want to do the following, where 'somefile' is a dynamic value: > require 'somefile.rb' > 'somefile.rb' will have a module inside it named "Magic_Module_somefile" > Inside that module there will be a class named "Magic_Class_somefile" > How do I new() that class ? That is, without using eval( magic_etc + ".new" )? -- Posted via http://www.ruby-forum.com/.