class RuboCop::Cop::Performance::SortReverse
def on_numblock(node)
def on_numblock(node) sort_with_numblock?(node) do |send, arg_count, body| next unless arg_count == 2 replaceable_body?(body, :_2, :_1) do register_offense(send, node) end end end
def on_numblock(node) sort_with_numblock?(node) do |send, arg_count, body| next unless arg_count == 2 replaceable_body?(body, :_2, :_1) do register_offense(send, node) end end end