class RuboCop::AST::NodePattern::Node::Capture

Node class for ‘$something`

def capture?

def capture?
  true
end

def in_sequence_head

def in_sequence_head
  wildcard, original_child = child.in_sequence_head
  return unless original_child
  [wildcard, self] # ($...) => (_ $...)
end

def nb_captures

def nb_captures
  1 + super
end