1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/lib/v8/function.rb
2010-04-22 11:46:21 -05:00

9 lines
No EOL
172 B
Ruby

module V8
class Function < V8::Object
def call(thisObject, *args)
To.ruby(@native.Call(To.v8(thisObject), *args.map {|a| To.v8(a)}))
end
end
end