From: Joel VanderWerf Date: 2010-06-15T01:09:04+09:00 Subject: Re: Loading a module without polluting my namespace Hagbard Celine wrote: > Thanks for your reply but I'm afraid that doesn't solve my problem. I > stumbled upon the optional argument of `load' as well but it prevents me > from accessing the loaded module. I'm sorry if I wasn't clear enough. I > would need something like this: ... > If I use `load "foo.rb", true' I can't access the loaded module or am I > mistaken? That's correct (you can't access it without playing tricks like global vars or searching ObjectSpace). If security is not your concern, take a look at the script lib I mentioned before: http://redshift.sourceforge.net/script Unlike load(..., true) , Script.load returns the wrapper module.