[ruby-core:89514] [Ruby trunk Feature#11689] Add methods allow us to get visibility from Method and UnboundMethod object.

From: Mike@...
Date: 2018-10-22 21:43:00 UTC
List: ruby-core #89514
Issue #11689 has been updated by MikeVastola (Mike Vastola).


Just wanted to second this FR as something I'd find useful.

Also, it would be nice to have associated predicate methods (i.e. `Method#public?`, `Method#protected?` and `Method#private?`)


----------------------------------------
Feature #11689: Add methods allow us to get visibility from Method and UnboundMethod object.
https://bugs.ruby-lang.org/issues/11689#change-74567

* Author: yui-knk (Kaneko Yuichiro)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
Add `Method#visibility` and `UnboundMethod#visibility` for getting visibility from Method and UnboundMethod object.
In GitHub https://github.com/ruby/ruby/pull/1098.

---Files--------------------------------
0001-Add-Method-visibility-and-UnboundMethod-visibility.patch (3.11 KB)


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

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

In This Thread

Prev Next