title: Closures in Ruby
body: <p>I'm having a little trouble with closures and I'd like to know what
  the equivalent code for the canonical make-adder procedure would be in
  Ruby.</p>
  
  <p>In scheme it would be like:</p>
  
  <pre><code>(define (make-adder n)
   (lambda (x) (+ x n))
  </code></pre>