module RuboCop::AST::ParameterizedNode::RestArguments

def arguments

Returns:
  • (Array) - arguments, if any
def arguments
  children[first_argument_index..].freeze
end

def arguments?

Returns:
  • (Boolean) - whether this node has any arguments
def arguments?
  children.size > first_argument_index
end

def first_argument

Returns:
  • (Node, nil) - the first argument of the node,
def first_argument
  children[first_argument_index]
end

def last_argument

Returns:
  • (Node, nil) - the last argument of the node,
def last_argument
  children[-1] if arguments?
end