Method: RuboCop::Cop::Style::CollectionCompact#select_method?

Defined in:
lib/rubocop/cop/style/collection_compact.rb

#select_method?(node) ⇒ Object



75
76
77
78
79
80
81
82
83
# File 'lib/rubocop/cop/style/collection_compact.rb', line 75

def_node_matcher :select_method?, "(block\n  (call\n    !nil? {:select :select! :filter :filter!})\n  $(args ...)\n  (call\n    (call\n      $(lvar _) :nil?) :!))\n"