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#public_instance_methods

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

Returns a list of the public instance methods defined in mod. If the optional parameter is false, the methods of any ancestors are not included.