From: ts Date: 2002-01-04T00:19:08+09:00 Subject: [ruby-talk:30127] Re: How to get top-level object from C? >>>>> "P" == Paul E C Melis writes: P> I have a ruby script that is loaded up from a C program using P> rb_load_file(). rb_load_file() compile the file but don't execute the parsed nodes. It's best to use rb_require(), rb_load() or rb_load_protect() P> -- boot.rb -- P> def Method1 (x, y, z) P> ... P> end P> .... P> -------------- P> Now, I want to call Method1 from C using rb_funcall(). Now you can use rb_cObject for the first argument of rb_funcall() Guy Decoux