M

Mr. Dubey • 52.26K Points
Coach

Q. How do you define a custom iterator in Ruby?

  • (A) By using the define_iterator keyword
  • (B) By extending the Iterator class
  • (C) By creating a method that yields to a block of code
  • (D) By invoking the create_iterator method

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.