You could install the ruby facets gem. Or you could implement the tap
method itself (from facets):
def tap(&b)
if block_given?
b.arity == 1 ? yield(self) : instance_eval(&b)
end
self
end
In the facets gem, they implemented that in the Kernel module.
And here's an article on "tap":
http://www.infoq.com/news/2008/02/tap-method-ruby19