From: Daniel Carrera Date: 2003-01-25T09:53:00+09:00 Subject: Re: Ruby Modules in C Okay, this is getting ridiculous. I swear that my code looks exactly like the Ruby source. Could someone help me out? Ruby can't even see the function being declared. I thinks it just doesn't exist. Please help. C source: #include "science.h" VALUE mScience; static VALUE mScience_seven(VALUE self) { return rb_float_new(7); } /* Module definition */ void Init_Science() { mScience = rb_define_module("Science"); mScience_define_constants(); rb_define_module_function(mScience, "seven", mScience_seven, 0); } IRB: >> require 'science' => true >> Science::seven NameError: undefined method `seven' for Science:Module from (irb):2 >> -- Daniel Carrera Graduate Teaching Assistant. Math Dept. University of Maryland. (301) 405-5137