Hi,

At Wed, 30 Jan 2002 22:36:21 +0900,
Eugene Scripnik <Eugene.Scripnik / itgrp.net> wrote:
> nnsn> Hmmm, I'm not sure about mod_ruby, but it seems to initialize
> nnsn> $: per request.  You may need to set it with RubyAddPath
> nnsn> directive in httpd.conf.
> I can't. We use .htaccess and some VirtualHosts, but RubyAddPath don't work there.

Then, can you set $: in handler itself?  If not, I have no
idea.


At Tue, 29 Jan 2002 22:18:03 +0900,
Eugene Scripnik <Eugene.Scripnik / itgrp.net> wrote:
> I can execute some chunk of code in anonymous namespace (module) by
> saving it into the temporary file and then call load( file, true ).
> It is the way how eruby-run works, but it is very inefficient. Is
> there another way to do the same? Saving and loading scripts makes my
> scripts too slow...

This helps you?

  Module.new.module_eval(code)

-- 
Nobu Nakada