# File lib/gherkin/native/therubyracer.rb, line 22 def initialize(js, *args) cxt = V8::Context.new cxt['module'] = {} # Mimic Node.js / Firebug console.log cxt['console'] = STDOUT def STDOUT.log(*a) puts sprintf(*a.map(&:to_s)) end cxt.load(js) @js_obj = cxt['module']['exports'].new(*args) end
Generated with the Darkfish Rdoc Generator 2.