<lunfis / gmx.de> schrieb im Newsbeitrag news:31611.1056428138 / www25.gmx.net... > Hi, > > Is there any way to access objects (eg. constants) from within a 'module' > that was loaded with wrap=true, like > > foo.rb: > X = 1 > > baz.rb: > load('foo.rb',true) > > puts X > > ? I don't think, you can access them from the outside, because the purpose of wrap=true is exactly to hide them: "Any local variables in the loaded file will not be propagated to the loading environment." If you want to expose them you'll better put them into a module and load with wrap = false. After all, why do you hide them if you want to expose them? Regards robert