Module: RuboCop::Cop::PatternMatchingHelp
- Included in:
- Style::Lambda, Style::SymbolProc
- Defined in:
- lib/rubocop/cop/mixin/pattern_matching_help.rb
Overview
Common functionality for checking whether a node is used in a pattern of pattern matching, where only some expressions are allowed.
Constant Summary collapse
- PATTERN_TYPES =
%i[ array_pattern array_pattern_with_tail begin const_pattern find_pattern hash_pattern match_alt match_as pair ].freeze