Intermediate
Ruby
Q51 / 100
What is the purpose of "Enumerable" module?
Correct! Well done.
Incorrect.
The correct answer is B) It provides traversal, search, sort, and other collection-related methods (map, select, reduce, etc.) to any class that defines "each"
B
Correct Answer
It provides traversal, search, sort, and other collection-related methods (map, select, reduce, etc.) to any class that defines "each"
Explanation
Any class that includes Enumerable and defines an "each" method gains access to a wide range of iteration methods like map, select, sort, and reduce.
Progress
51/100