diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-01-21 11:47:04 +0900 |
---|---|---|
committer | NARUSE, Yui <naruse@airemix.jp> | 2020-03-15 19:35:24 +0900 |
commit | d07a6dc10efa71123b36a4a3ff7d2ec6e52804d7 (patch) | |
tree | 0744d421207bdd66d743fcbb87e0d9cf11739cf8 /lib | |
parent | e70d52b0c377f8b2ed04311710c0ca9f4ebabd90 (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.rb | 2 |
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 # |