public_methods(*args)
public
Returns the list of public methods
accessible to obj. If the all parameter is set to false,
only those methods in the receiver will
be listed.
Show source
static VALUE
rb_obj_public_methods(int argc, VALUE *argv, VALUE obj)
{
if (argc == 0) { /* hack to stop warning */
VALUE args[1];
args[0] = Qtrue;
return rb_class_public_instance_methods(1, args, CLASS_OF(obj));
}
return rb_class_public_instance_methods(argc, argv, CLASS_OF(obj));
}