title: How can I define/name a block in Ruby?
body: <pre><code>numbers = 1..10
  print numbers.map {|x| x*x}
  
  # I want to do:
  square = {|x| x*x}
  print numbers.map square
  </code></pre>
  
  <p>Because the syntax is more concise. I there a way to do this without having to use <code>def</code> + <code>end</code>?</p>