mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 18:43:59 +02:00
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:
parent
e70d52b0c3
commit
d07a6dc10e
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue