From: Luke Kanies Date: 2006-08-22T09:27:37+09:00 Subject: Setting namespace in loaded files Hi all, I'm dynamically loading some ruby files, and those files need to call a method on a module of mine. E.g., in this case, the method is Puppet::Parser::Functions.newfunction, and the files are autoloaded from 'puppet/parser/functions/.rb'. I'd like to load the files in a way that 'newfunction' could be called without the full path to Puppet::Parser::Functions.; they call 'newfunction', and it correctly resolves to the Functions module. Is there a way to load a file within an existing namespace, so that the method search path started at the scope doing the loading? Thanks, Luke -- Luke Kanies http://madstop.com | http://reductivelabs.com | 615-594-8199