class RuboCop::Cop::Performance::Detect
def message_for_method(method, index)
def message_for_method(method, index) case method when :[] index == -1 ? INDEX_REVERSE_MSG : INDEX_MSG when :last REVERSE_MSG else MSG end end
def message_for_method(method, index) case method when :[] index == -1 ? INDEX_REVERSE_MSG : INDEX_MSG when :last REVERSE_MSG else MSG end end