title: what ruby tap method does on a {}
body: <p>I've read about what tap does in Ruby but I'm confused by the code block below,</p>
  
  <pre><code>{}.tap do |h|
    # some hash processing
  end
  </code></pre>
  
  <p>any help would be greatly appreciated.</p>