Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

Module#protected_instance_methods

(?::boolish include_super) -> ::Array[::Symbol]
mod.protected_instance_methods(include_super=true) → array

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.