Ruby 中的 until 循环在指定条件为 false 时执行代码块。它会重复运行循环内的代码,直到条件变为 true。可以将其视为 while 循环的相反面;while 循环在条件为 true 时继续执行,而 until 循环在条件为 false 时继续执行。
until
while