public Method

Module.constants

mod.constants     array

Returns an array of the names of the constants accessible in mod. This includes the names of constants in any included modules (example at start of section).

Source Code

/*
*  call-seq:
*     mod.constants    => array
*  
*  Returns an array of the names of the constants accessible in
*  <i>mod</i>. This includes the names of constants in any included
*  modules (example at start of section).
*/

VALUE
rb_mod_constants(mod)
   VALUE mod;
{
   return rb_const_list(rb_mod_const_of(mod, 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.