Skip to content

Commit 000e3a6

Browse files
Merge pull request #376 from puppetlabs/maint-revert_leading_args
Revert "(maint) - fix rubocop" Leading argument with delegation syntax not supported with ruby 2.7.0
2 parents 73e92aa + 06d04ba commit 000e3a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/puppet-strings/yard/tags/overload_tag.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def object=(value)
7575
# @param [Array] args The args passed to the method.
7676
# @param block The block passed to the method.
7777
# @return Returns what the method call on the object would return.
78-
def method_missing(method_name, ...)
79-
return object.send(method_name, ...) if object.respond_to? method_name
78+
def method_missing(method_name, *args, &block)
79+
return object.send(method_name, *args, &block) if object.respond_to? method_name
8080

8181
super
8282
end

0 commit comments

Comments
 (0)