Skip to content

Commit

Permalink
Forward keyword arguments in Polyphony::ResourcePool
Browse files Browse the repository at this point in the history
  • Loading branch information
floriandejonckheere committed Sep 16, 2024
1 parent 6e8d34b commit b8fbcf3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/polyphony/core/resource_pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ def acquire(&block)
#
# @param sym [Symbol] method name
# @param args [Array<any>] method arguments
# @param kwargs [Hash] keyword arguments
# @return [any] result of method call
def method_missing(sym, *args, &block)
acquire { |r| r.send(sym, *args, &block) }
def method_missing(sym, *args, **kwargs, &block)
acquire { |r| r.send(sym, *args, **kwargs, &block) }
end

# @!visibility private
Expand Down

0 comments on commit b8fbcf3

Please sign in to comment.