From: Robert Dober Date: 2010-10-31T16:22:25+09:00 Subject: Re: Constant lookup as-if toplevel On Sat, Oct 30, 2010 at 12:06 AM, Intransition wrote: yup def execute( script, filename ) eval(script, Module.new.send(:binding), filename) end execute( "Foo", "here" ) which gives here:1:in `execute': uninitialized constant Object::Foo (NameError) does this suit your needs better? If this still causes the conflicts you were talking about, I like John's idea. HTH R -- There are worse things than having people misunderstand your work. A worse danger is that you will yourself misunderstand your work. -- Paul Graham