Module: RuboCop::AST::NodePattern::Node::ForbidInSeqHead

Included in:
AnyOrder, Repetition, Sequence, Subsequence
Defined in:
lib/rubocop/ast/node_pattern/node.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#in_sequence_headObject


83
84
85
# File 'lib/rubocop/ast/node_pattern/node.rb', line 83

def in_sequence_head
  raise NodePattern::Invalid, "A sequence can not start with a #{type}"
end