Project

General

Profile

Actions

Feature #11308

closed

Optional `include_super=true` parameter for `*method_defined?` methods

Feature #11308: Optional `include_super=true` parameter for `*method_defined?` methods

Added by sawa (Tsuyoshi Sawada) over 10 years ago. Updated almost 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:69741]

Description

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

Updated by matz (Yukihiro Matsumoto) over 10 years ago Actions #1 [ruby-core:69750]

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

Matz.

Updated by sawa (Tsuyoshi Sawada) almost 6 years ago Actions #2 [ruby-core:96662]

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

Updated by Eregon (Benoit Daloze) almost 6 years ago Actions #3

  • Status changed from Open to Closed
Actions

Also available in: PDF Atom