summaryrefslogtreecommitdiff
path: root/lib/delegate.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-01-21 11:47:04 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-01-30 22:13:29 +0900
commit9bcf4f3db26249772c983896ebbc9ff41f4614db (patch)
tree3a93e3ad93d71eeaaa873493b16819c88bbc311f /lib/delegate.rb
parent3893a8dd42fb3bbd71750648c3c0de118955a6ea (diff)
delegate.rb: fixed keyword arguments in DelegateClass
`Delegator.delegating_block` should delegate keyword arguments separately. [ruby-core:96949]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2852
Diffstat (limited to 'lib/delegate.rb')
-rw-r--r--lib/delegate.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/delegate.rb b/lib/delegate.rb
index 0bbe211a05..b7d48effb4 100644
--- a/lib/delegate.rb
+++ b/lib/delegate.rb
@@ -334,7 +334,7 @@ def Delegator.delegating_block(mid) # :nodoc:
lambda do |*args, &block|
target = self.__getobj__
target.__send__(mid, *args, &block)
- end
+ end.ruby2_keywords
end
#