What does the max method do in Ruby enumerators?
A. Returns the total number of elements that satisfy a given condition
B. Returns the element with the maximum index
C. Returns the element with the maximum value based on a given condition
D. Returns the maximum value in a collection
Answer: Option D
Join The Discussion