diff --git a/lib/puppet-strings/yard/tags/overload_tag.rb b/lib/puppet-strings/yard/tags/overload_tag.rb index 8ae29425..2459e0cc 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, *args, &block) - return object.send(method_name, *args, &block) if object.respond_to? method_name + def method_missing(method_name, ...) + return object.send(method_name, ...) if object.respond_to? method_name super end