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

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

#and_not_another_type?(node) ⇒ Object



63
64
65
66
67
68
# File 'lib/rubocop/cop/internal_affairs/node_type_multiple_predicates.rb', line 63

def_node_matcher :and_not_another_type?, "(and {\n  (send $(call _receiver :type? sym+) :!) (send (call _receiver #type_predicate?) :!) |\n  (send (call _receiver #type_predicate?) :!) (send $(call _receiver :type? sym+) :!)\n})\n"