delegate.rb: fixed keyword arguments in DelegateClass

`Delegator.delegating_block` should delegate keyword arguments
separately.  [ruby-core:96949]

(cherry picked from commit 9bcf4f3db2)
This commit is contained in:
Nobuyoshi Nakada 2020-01-21 11:47:04 +09:00 committed by NARUSE, Yui
parent e70d52b0c3
commit d07a6dc10e
2 changed files with 9 additions and 1 deletions

View file

@ -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
#