From: Joel VanderWerf Date: 2010-07-13T04:05:40+09:00 Subject: Re: Loading a module without polluting my namespace Dreamcat Four wrote: > Joel VanderWerf wrote: >> However, you don't get easy access to the anonymous module. If you want >> that, I have a little library that may be helpful: >> >> http://redshift.sourceforge.net/script/ > > This is great, but seems to blows up when requiring other files > > http://github.com/dreamcat4/plist4r/blob/master/lib/plist4r/backend/c_f_property_list.rb#L8 > > http://gist.github.com/471434 Is it possible to simplify the example a bit? I can't tell where the 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...