[#67346] Future of test suites for Ruby — Charles Oliver Nutter <headius@...>

I'll try to be brief so we can discuss all this. tl;dr: RubySpec is

19 messages 2015/01/05

[ruby-core:67870] [ruby-trunk - Feature #10797] [Open] `inherit` parameter for `..._defined?` methods in Module

From: sawadatsuyoshi@...
Date: 2015-01-28 22:27:50 UTC
List: ruby-core #67870
Issue #10797 has been reported by Tsuyoshi Sawada.

----------------------------------------
Feature #10797: `inherit` parameter for `..._defined?` methods in Module
https://bugs.ruby-lang.org/issues/10797

* Author: Tsuyoshi Sawada
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
`Module#const_defined?` takes an optional argument `inherit` with default value `true` to control whether to consider inheritance. But the following methods do not:

* `Module#method_defined?`
* `Module#private_method_defined?`
* `Module#protected_method_defined?`
* `Module#public_method_defined?`

They only allow what would correspond to `inherit = true`. I request an optional argument `inherit` with default value `true` to be added to these methods to control whether inheritance should be considered.



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

In This Thread

Prev Next