Method: RuboCop::Cop::Style::MapToSet#map_to_set?
- Defined in:
- lib/rubocop/cop/style/map_to_set.rb
permalink #map_to_set?(node) ⇒ Object
[View source]
34 35 36 37 38 39 |
# File 'lib/rubocop/cop/style/map_to_set.rb', line 34 def_node_matcher :map_to_set?, <<~PATTERN { $(call (any_block $(call _ {:map :collect}) ...) :to_set) $(call $(call _ {:map :collect} (block_pass sym)) :to_set) } PATTERN |