Skip to content

Commit 43e177a

Browse files
Forward keyword arguments in Polyphony::ResourcePool
1 parent 29df9b2 commit 43e177a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/polyphony/core/resource_pool.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ def acquire(&block)
5656
#
5757
# @param sym [Symbol] method name
5858
# @param args [Array<any>] method arguments
59+
# @param kwargs [Hash] keyword arguments
5960
# @return [any] result of method call
60-
def method_missing(sym, *args, &block)
61-
acquire { |r| r.send(sym, *args, &block) }
61+
def method_missing(sym, *args, **kwargs, &block)
62+
acquire { |r| r.send(sym, *args, **kwargs, &block) }
6263
end
6364

6465
# @!visibility private

0 commit comments

Comments
 (0)