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:
parent
8eae5d4b3b
commit
2586465522
2 changed files with 9 additions and 0 deletions
|
@ -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
8
lib/v8/tap.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
unless Object.method_defined?(:tap)
|
||||
class Object
|
||||
def tap
|
||||
yield self
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue