From: "Eregon (Benoit Daloze)" Date: 2022-08-20T12:18:24+00:00 Subject: [ruby-core:109592] [Ruby master Feature#11689] Add methods allow us to get visibility from Method and UnboundMethod object. Issue #11689 has been updated by Eregon (Benoit Daloze). Status changed from Closed to Open (I reopen because the new methods or equivalent functionality is not present on current master.) Since https://github.com/ruby/ruby/pull/6242, both #18729 and #18751 are fixed. Also "Visibility is an attribute of the method entry in a class, not an attribute of the Method object." is not a problem because now Method == method entry :) Therefore I think we can now add {Method,UnboundMethod}#{public?,private?,protected?} again without any issue, and they will work intuitively/correctly. @matz Is it OK? ---------------------------------------- Feature #11689: Add methods allow us to get visibility from Method and UnboundMethod object. https://bugs.ruby-lang.org/issues/11689#change-98774 * Author: yui-knk (Kaneko Yuichiro) * Status: Open * Priority: Normal ---------------------------------------- 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: