instance method
Object#protected_methods
(?::boolish all) -> ::Array[::Symbol]
obj.protected_methods(all=true) → array
object.c
View on GitHub ↗
VALUE
rb_obj_protected_methods(int argc, const VALUE *argv, VALUE obj)
{
return class_instance_method_list(argc, argv, CLASS_OF(obj), 1, ins_methods_prot_i);
}
Returns the list of protected methods accessible to obj. If the all parameter is set to false, only those methods in the receiver will be listed.
See also
#private_methods
#public_method
#object_id
#public_methods
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0