T
Trans
mypath/file1.rb:
require 'file2.rb'
require 'file3.rb'
mypath/file2.rb:
# ...
anotherpath/file3.rb:
# ...
Then do
How it works is to put the namespace paths on the $LOAD_PATH when a
namespace is encountered in a require string, then removes them when
done.
Thoughts?
T.
require 'file2.rb'
require 'file3.rb'
mypath/file2.rb:
# ...
anotherpath/file3.rb:
# ...
Then do
=> true$LOAD_SPACE['myspace'] = [ 'mypath', 'anotherpath' ]
require 'myspace:file1.rb'
How it works is to put the namespace paths on the $LOAD_PATH when a
namespace is encountered in a require string, then removes them when
done.
Thoughts?
T.