public Method

Module.public_class_method(...)

mod.public_class_method(symbol, ...)     mod

Makes a list of existing class methods public.

Source Code

/*
*  call-seq:
*     mod.public_class_method(symbol, ...)    => mod
*  
*  Makes a list of existing class methods public.
*/

static VALUE
rb_mod_public_method(argc, argv, obj)
   int argc;
   VALUE *argv;
   VALUE obj;
{
   set_method_visibility(CLASS_OF(obj), argc, argv, NOEX_PUBLIC);
   return obj;
}
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.