Method: RuboCop::Cop::InternalAffairs::NodeTypeMultiplePredicates#or_another_type?

Defined in:
lib/rubocop/cop/internal_affairs/node_type_multiple_predicates.rb

#or_another_type?(node) ⇒ Object



47
48
49
50
51
52
# File 'lib/rubocop/cop/internal_affairs/node_type_multiple_predicates.rb', line 47

def_node_matcher :or_another_type?, <<~PATTERN
  (or {
    $(call _receiver :type? sym+) (call _receiver #type_predicate?) |
    (call _receiver #type_predicate?) $(call _receiver :type? sym+)
  })
PATTERN