Hagbard Celine wrote:
> In my current project I try to load a module dynamically. Which is
> basically no problem due to 'require` accepting filenames as well. My
> problem is that I'd totally pollute my namespace.

Kernel.load(filename, true) might help. But AFAIK that doesn't prevent 
the source code from doing

class ::Object
  def override_something_important
    ..
  end
end

If you need to protect against untrusted code, have a look at _why's 
sandbox.
-- 
Posted via http://www.ruby-forum.com/.