class RuboCop::AST::NodePattern::Node::Rest

Node class for `…`

Constants

ARITY

Public Instance Methods

arity() click to toggle source
# File lib/rubocop/ast/node_pattern/node.rb, line 166
def arity
  ARITY
end
in_sequence_head() click to toggle source
# File lib/rubocop/ast/node_pattern/node.rb, line 170
def in_sequence_head
  [Node.new(:wildcard), self]
end
rest?() click to toggle source
# File lib/rubocop/ast/node_pattern/node.rb, line 162
def rest?
  true
end