* [ruby-core:103472] [Ruby master Bug#9542] Delegator does not delegate protected methods
[not found] <redmine.issue-9542.20140220163540.7882@ruby-lang.org>
@ 2021-04-16 5:44 ` matz
0 siblings, 0 replies; only message in thread
From: matz @ 2021-04-16 5:44 UTC (permalink / raw)
To: ruby-core
Issue #9542 has been updated by matz (Yukihiro Matsumoto).
Backport deleted (1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN)
It's intentional.
Matz.
----------------------------------------
Bug #9542: Delegator does not delegate protected methods
https://bugs.ruby-lang.org/issues/9542#change-91569
* Author: vrinek (Konstantinos Karachalios)
* Status: Open
* Priority: Normal
* ruby -v: 2.1.0p0
----------------------------------------
The Delegator of the "delegate" standard library has changed its behaviour since 2.0 because of the change in "respond_to?" concerning protected methods.
As of ruby 2.0, Delegator does not delegate protected methods any more.
In case this is indeed a bug, I will prepare a pull request on github fixing the issue.
On the other hand, if is intentional behaviour, something has to change in the documentation for "delegate" as well as [Delegator#respond_to_missing?](http://ruby-doc.org/stdlib-2.1.0/libdoc/delegate/rdoc/Delegator.html#method-i-respond_to_missing-3F) (at least the second argument's name). I can help with the code but I am not so confident in my documentation skills.
---Files--------------------------------
the_bug.rb (283 Bytes)
output.txt (589 Bytes)
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-16 5:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <redmine.issue-9542.20140220163540.7882@ruby-lang.org>
2021-04-16 5:44 ` [ruby-core:103472] [Ruby master Bug#9542] Delegator does not delegate protected methods matz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).