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

add tap support to 1.8.6

This commit is contained in:
Charles Lowell 2010-02-17 07:02:16 -06:00
parent 8eae5d4b3b
commit 2586465522
2 changed files with 9 additions and 0 deletions

View file

@ -7,4 +7,5 @@ module V8
require 'v8/to'
require 'v8/context'
require 'v8/object'
require 'v8/tap'
end

8
lib/v8/tap.rb Normal file
View file

@ -0,0 +1,8 @@
unless Object.method_defined?(:tap)
class Object
def tap
yield self
end
end
end