From: Benjamin Hepp Date: 2005-07-02T19:05:43+09:00 Subject: Loading a file without cluttering the global namespace Hello, I'm trying to build a module-mechanism in ruby so that I am able to load a ruby-file without cluttering up the global namespace of the program. For example I want to be able to load a ruby-file, search for methods in it, possibly execute one of them and then "unload" the file. When I call Kernel#load with wrap = true, everything of the new file is put into an anonymous Module, but every other file loaded in the new file itself is put into the global namespace again. My questions: Is it at all possible to prevent this? If so, how to do it? Can I access the anonymous Module in an easy manner? How to delete/undefine a class or a method? Thanks in advance Benjamin Hepp