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_head ⇒ Object
86 87 88 |
# File 'lib/rubocop/ast/node_pattern/node.rb', line 86 def in_sequence_head raise NodePattern::Invalid, "A sequence can not start with a #{type}" end |