until¶
untilは条件式が真となるまで繰り返し本体を実行します。untilはwhileに条件式を否定したもの与えられた場合のシンタックスシュガーになっています。
until some_condition
do_this
end
# 上記は以下に同じ
while !some_condition
do_this
end
break and next can also be used inside an until, and like in while expressions, breaks may be used to return values from an until.