title: How to store ruby code blocks
body: <p>I want to store a "code block" in a variable to be reused, something like:</p>
  
  <pre><code>block = do
  |test| puts test
  end
  
  3.upto(8) block
  </code></pre>
  
  <p>Can someone show me what am I doing so obviously wrong? (Or if it's just impossible)</p>