class RuboCop::Cop::Performance::ReverseEach
def on_send(node)
def on_send(node) return if use_return_value?(node) reverse_each?(node) do range = offense_range(node) add_offense(range) do |corrector| corrector.replace(range, 'reverse_each') end end end