summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-01-21 11:47:04 +0900
committerNARUSE, Yui <naruse@airemix.jp>2020-03-15 19:35:24 +0900
commitd07a6dc10efa71123b36a4a3ff7d2ec6e52804d7 (patch)
tree0744d421207bdd66d743fcbb87e0d9cf11739cf8 /lib
parente70d52b0c377f8b2ed04311710c0ca9f4ebabd90 (diff)
delegate.rb: fixed keyword arguments in DelegateClass
`Delegator.delegating_block` should delegate keyword arguments separately. [ruby-core:96949] (cherry picked from commit 9bcf4f3db26249772c983896ebbc9ff41f4614db)
Diffstat (limited to 'lib')
-rw-r--r--lib/delegate.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/delegate.rb b/lib/delegate.rb
index 8c176dc82c..63657646e1 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
#