From: Joel VanderWerf Date: 2003-01-25T13:07:02+09:00 Subject: Re: Submodules and C Daniel Carrera wrote: > Hi, > Suppose I want to make a "Math::Const" submodule. What should I call the > Init_* function so that the require is something sensible. Is this even > possible? > > Could the 'require' be something like: > > require 'math::const' You mean include, right? > But you can't make a C function called Init_math::const > > What is the best way to deal with the issue of submodules and require's? > Excerpt from README.ETC: To define nested classes or modules, use the functions below: VALUE rb_define_class_under(VALUE outer, const char *name, VALUE super) VALUE rb_define_module_under(VALUE outer, const char *name)