From: Dreamcat Four Date: 2010-07-13T17:27:17+09:00 Subject: Re: Loading a module without polluting my namespace Joel VanderWerf wrote: > Dreamcat Four wrote: >> http://gist.github.com/471434 > Is it possible to simplify the example a bit? I can't tell where the Here is the example2.rb, but modified to reproduce this scenario. http://github.com/dreamcat4/script/commit/0a89728d When we run the same ruby code directly (example2-no-wrapper.rb), there is no error. So the script wrapper is doing something differently than ruby would normally. My question: Can find a way to get around this without touching the loaded source code? > missing const is actually defined. > >> I noticed that there is a redefinition of require in script.rb. Is that >> method meant to be handling that? >> >> http://redshift.sourceforge.net/script/doc/classes/Script.html#M000003 > > There's an example of using require with script in examples/program2.rb. > Maybe that helps? > > Sorry not to be more helpful... -- Posted via http://www.ruby-forum.com/.