Thanks Joel, i'll consider your library.

For me it was only important to make it work without modifying the 
loaded file (i still do not understand why it doesn't work when not 
wrapped in a module, but this is not so important).
So module_eval works for me.
Still it is somewhat unexpected (against the Least Surprise principle) 
that calling "load" inside a module does not load the source inside that 
module.

Alexey.

-- 
Posted via http://www.ruby-forum.com/.