A

Admin • 833K Points
Coach

Q. What does the 'each' method do in Ruby?

  • (A) Iterates over elements
  • (B) Sorts the elements
  • (C) Filters the elements
  • (D) Deletes elements
  • Correct Answer - Option(A)
  • Views: 16
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin

The each method iterates over each element in a collection.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.