class RuboCop::AST::NodePattern::Node::AnyOrder
Node class for ‘<int str …>`
def arity
def arity return children.size unless ends_with_rest? ARITIES[children.size] end
def ends_with_rest?
def ends_with_rest? children.last.rest? end
def rest_node
def rest_node children.last if ends_with_rest? end
def term_nodes
def term_nodes ends_with_rest? ? children[0...-1] : children end