Method: RuboCop::Cop::Style::ArrayIntersect#bad_intersection_check?
- Defined in:
- lib/rubocop/cop/style/array_intersect.rb
#bad_intersection_check?(node, predicates) ⇒ Object
94 95 96 97 98 99 100 101 102 |
# File 'lib/rubocop/cop/style/array_intersect.rb', line 94 def_node_matcher :bad_intersection_check?, "$(call\n {\n (begin (send $_ :& $_))\n (call $!nil? :intersection $_)\n }\n $%1\n)\n" |