1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/lib/v8/tap.rb

9 lines
99 B
Ruby
Raw Normal View History

2010-02-17 08:02:16 -05:00
unless Object.method_defined?(:tap)
class Object
def tap
yield self
end
end
end