End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Module#protected_instance_methods
mod.protected_instance_methods(include_super=true) → array
object.c
View on GitHub ↗
VALUE
rb_class_protected_instance_methods(int argc, const VALUE *argv, VALUE mod)
{
return class_instance_method_list(argc, argv, mod, 0, ins_methods_prot_i);
}
Returns a list of the protected instance methods defined in mod. If the optional parameter is false, the methods of any ancestors are not included.
See also
#protected
#protected_method_defined?
#private_method_defined?
#public
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1