Vidyalelo
Ruby Programming · Q9

Enumerators and Iterators in Ruby

Programming · Ruby Programming · question 9

Q9

Which method is used to convert a collection into an enumerator in Ruby?

A.
to_enum
Answer
B.
enum_for
C.
to_enumerator
D.
enumerator

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board