From b8fbcf3aeaf7fc5e33bd8fc5658e2fc1250dcd8b Mon Sep 17 00:00:00 2001 From: Florian Dejonckheere Date: Mon, 16 Sep 2024 09:14:02 +0200 Subject: [PATCH] Forward keyword arguments in Polyphony::ResourcePool --- lib/polyphony/core/resource_pool.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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