Commit 832c88e9 authored by Daniel DeLeo's avatar Daniel DeLeo
Browse files

Object#tap for ruby 1.8.6

parent 576a156b
class Object
unless new.respond_to?(:tap)
def tap
yield self
return self
end
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment