Issue #11308 has been updated by sawa (Tsuyoshi Sawada).


This is another duplicate of #10797. Please close this issue.

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

* Author: sawa (Tsuyoshi Sawada)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
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/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>