Inject the Hash before you tap it
There is a Ruby best practices blog that is exploring the uses of Object#tap, particularly with respect to building hashes, as per the example they give:
Written on Wed Aug 5 19:57:39 2009.
Tagged as ruby.