Back to Developer Roadmap

Redo

src/data/roadmaps/ruby/content/redo@gUa4S-_xZhClyiit_MSkQ.md

4.0723 B
Original Source

Redo

redo is a control flow statement in Ruby used within loops (like for, while, until) and iterators (like each, map). When redo is encountered, it restarts the current iteration of the loop or iterator from the beginning, without evaluating any remaining code in that iteration. It essentially repeats the current step.

Visit the following resources to learn more: