From: ts Date: 2002-05-12T16:44:37+09:00 Subject: Re: Ruby extensions - pushing classes into other modules >>>>> "D" == Daniel Berger writes: D> void Init_Sys() [...] D> void Init_Info() [...] D> require 'Sys' I'm not sure if it's a good idea to have capital letter for the name of a module. D> puts Sys::Info.hostname Normal, Sys::Info is defined by Info.so not by Sys.so, you must write require 'Info' # the require 'Sys' will be made by Info.so puts Sys::Info.hostname I've found strange that you define a class and then call rb_define_module_function() perhaps in this case it's best to define a module, or define a class Info and use rb_define_singleton_method() Guy Decoux