method

protected_instance_methods

v2_1_10 - Show latest stable - Class: Module
protected_instance_methods(*args)
public

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

1Note

Can be used on classes, too

szeryf · Feb 8, 2009

For example: class C protected def foo end end p C.protected_instance_methods(false)

outputs: ["foo"]