Method: Object#private_methods
- Defined in:
- class.c
#private_methods(all = true) ⇒ Array
Returns the list of private methods accessible to obj. If the all parameter is set to false, only those methods in the receiver will be listed.
1394 1395 1396 1397 1398 |
# File 'class.c', line 1394
VALUE
rb_obj_private_methods(int argc, const VALUE *argv, VALUE obj)
{
return class_instance_method_list(argc, argv, CLASS_OF(obj), 1, ins_methods_priv_i);
}
|