Vidyalelo
Ruby Programming · Q42

Advanced Topics in Ruby

Programming · Ruby Programming · question 42

Q42

What is the purpose of the Enumerator class in Ruby?

A.
It provides a way to enumerate over the elements of an array
B.
It allows you to create custom iterators for any enumerable object
Answer
C.
It allows you to define custom iteration behavior for any enumerable object
D.
None of the above

Answer: Option B

Solution

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