 <p>This <a href="http://cbcg.net/talks/rubyidioms/" rel="nofollow noreferrer">slideshow</a> is quite complete on the main Ruby idioms, as in:</p> <ul> <li><p>Swap two values: </p> <p><code>x, y = y, x</code></p></li> <li><p>Parameters that, if not specified, take on some default value</p> <p><code>def somemethod(x, y=nil)</code></p></li> <li><p>Batches up extraneous parameters into an array</p> <p><code>def substitute(re, str, *rest)</code></p></li> </ul> <p>And so on...</p>