public Method

Module.name

mod.name     string

Returns the name of the module mod.

Source Code

/*
*  call-seq:
*     mod.name    => string
*  
*  Returns the name of the module <i>mod</i>.
*/

VALUE
rb_mod_name(mod)
   VALUE mod;
{
   VALUE path = classname(mod);

   if (!NIL_P(path)) return rb_str_dup(path);
   return rb_str_new(0,0);
}
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.