Issue #11308 has been updated by Yukihiro Matsumoto.


Rationale? I don't see any real-world use-case for them.

Matz.


----------------------------------------
Feature #11308: Optional `include_super=true` parameter for `*method_defined?` methods
https://bugs.ruby-lang.org/issues/11308#change-53127

* Author: Tsuyoshi Sawada
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
I request the following methods in the `Module` class:

* `method_defined?`
* `private_method_defined?`
* `protected_method_defined?`
* `public_method_defined?`

to take an optional `include_super` parameter with the default value `true`, and work similar to the methods:

* `instance_methods`
* `private_instance_methods`
* `protected_instance_methods`
* and `public_instance_methods`



-- 
https://bugs.ruby-lang.org/