class RuboCop::AST::DefNode

def argument_forwarding?

Returns:
  • (Boolean) - whether the `def` node uses argument forwarding

Other tags:
    Note: - This is written in a way that may support lead arguments
def argument_forwarding?
  arguments.any?(&:forward_args_type?) || arguments.any?(&:forward_arg_type?)
end