William Djaja Tjokroaminata <billtj / z.glue.umd.edu> wrote in message news:<aieb3t$o97$1 / grapevine.wam.umd.edu>...
> Hi,
> 
> Is it possible to load (and execute) a Ruby script from within a C
> extension?  From my Ruby code, I can just write
> 
>     .....
>     load 'conf.rb'
>     .....
> 
> and my configuration parameters are loaded at that point.  However, from a
> C extension, when I wrote
> 
>     .....
>     rb_load (rb_str_new2 ("conf.rb"), 0);
>     .....
> 
>
rb_require("conf.rb");

works for me

Tomek 'Alva' Wroblewski