Home / Report Question

Q. How do you create a custom enumerator in Ruby?
  • A. By defining a method that yields to a block of code
  • B. By invoking the create_enumerator method
  • C. By extending the Enumerator class
  • D. By using the define_enumerator keyword