redo 是 Ruby 中的控制流语句,用于循环(如 for、while、until)和迭代器(如 each、map)。当遇到 redo 时,它会从开始重新启动循环或迭代器的当前迭代,而不评估该迭代中剩余的任何代码。它本质上重复当前步骤。
redo
for
while
until
each
map