Examveda

What does the `retry` keyword do in Ruby?

A. Repeats the current iteration of the loop

B. Exits the loop

C. Restarts the loop from the beginning

D. Restarts the current block of code from the beginning

Answer: Option C


This Question Belongs to Ruby Programming >> Control Structures In Ruby

Join The Discussion

Related Questions on Control Structures in Ruby