Class: Sqreen::Js::ExecJsRunnable

Inherits:
ExecutableJs show all
Defined in:
lib/sqreen/js/exec_js_runnable.rb

Instance Method Summary collapse

Constructor Details

#initialize(compiled) ⇒ ExecJsRunnable

Returns a new instance of ExecJsRunnable.



13
14
15
# File 'lib/sqreen/js/exec_js_runnable.rb', line 13

def initialize(compiled)
  @compiled = compiled
end

Instance Method Details

#run_js_cb(cbname, _budget, arguments) ⇒ Object



17
18
19
# File 'lib/sqreen/js/exec_js_runnable.rb', line 17

def run_js_cb(cbname, _budget, arguments)
  @compiled.call(cbname, *arguments)
end