<p>Ruby has a wealth of conditional constructs, including <code>if</code>/<code>unless</code>, <code>while</code>/<code>until</code> etc.</p>

<p>The <code>while</code> block from C:</p>

<pre><code>while (condition) {
    ...
}
</code></pre>

<p>can be directly translated to Ruby:</p>

<pre><code>while condition 
    ...
end
</code></pre>

<p>However, I can't seem to find a <em>built-in</em> equivalent in Ruby for a C-like <code>do ... while</code> block in which the block contents are executed at least once:</p>

<pre><code>do { 
    ... 
} while (condition);
</code></pre>

<p>Any suggestions?</p>

...The best I could come up with is the
```
loop
```
construct with a
```
break
```
at the end:
```
```
loop do
    ...
    break unless condition
end
```
```