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 ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (C) By creating a method that yields to a block of code