In Ruby, what is the cleanest way of obtaining the index of the largest value in an array? In Ruby, what is the cleanest way of obtaining the index of the largest value in an array? ruby ruby