From: "Paul E.C. Melis" Date: 2002-01-03T23:47:39+09:00 Subject: [ruby-talk:30124] How to get top-level object from C? Hi, I have a ruby script that is loaded up from a C program using rb_load_file(). This script defines some methods: -- boot.rb -- def Method1 (x, y, z) ... end .... -------------- Now, I want to call Method1 from C using rb_funcall(). However, one of it's arguments is 'VALUE receiver', but how do I get the top-level object? Is there a C API call? Regards, Paul