From 06d04ba37c8dd4a9964ed8bd35c669ea2a6b67a4 Mon Sep 17 00:00:00 2001 From: jordanbreen28 Date: Tue, 5 Dec 2023 08:32:08 +0000 Subject: [PATCH] Revert "(maint) - fix rubocop" This reverts commit e6b70be9e7a4eaaf50d7eaf8d8172649b6350dcb. --- lib/puppet-strings/yard/tags/overload_tag.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puppet-strings/yard/tags/overload_tag.rb b/lib/puppet-strings/yard/tags/overload_tag.rb index 2459e0cc..8ae29425 100644 --- a/lib/puppet-strings/yard/tags/overload_tag.rb +++ b/lib/puppet-strings/yard/tags/overload_tag.rb @@ -75,8 +75,8 @@ def object=(value) # @param [Array] args The args passed to the method. # @param block The block passed to the method. # @return Returns what the method call on the object would return. - def method_missing(method_name, ...) - return object.send(method_name, ...) if object.respond_to? method_name + def method_missing(method_name, *args, &block) + return object.send(method_name, *args, &block) if object.respond_to? method_name super end