diff --git a/lib/polyphony/core/resource_pool.rb b/lib/polyphony/core/resource_pool.rb index 4613f8bd..a1f997de 100644 --- a/lib/polyphony/core/resource_pool.rb +++ b/lib/polyphony/core/resource_pool.rb @@ -56,9 +56,10 @@ def acquire(&block) # # @param sym [Symbol] method name # @param args [Array] 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