Skip to content

Commit

Permalink
Merge pull request #376 from puppetlabs/maint-revert_leading_args
Browse files Browse the repository at this point in the history
Revert "(maint) - fix rubocop" Leading argument with delegation syntax not supported with ruby 2.7.0
  • Loading branch information
gavindidrichsen authored Dec 5, 2023
2 parents 73e92aa + 06d04ba commit 000e3a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet-strings/yard/tags/overload_tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 000e3a6

Please sign in to comment.