class RuboCop::Cop::Style::CombinableLoops
def collection_looping_method?(node)
def collection_looping_method?(node) method_name = node.send_node.method_name method_name.match?(/^each/) || method_name.match?(/_each$/) end
def collection_looping_method?(node) method_name = node.send_node.method_name method_name.match?(/^each/) || method_name.match?(/_each$/) end