class Sqreen::Js::ExecJsRunnable

Public Class Methods

new(compiled) click to toggle source
# File lib/sqreen/js/exec_js_runnable.rb, line 13
def initialize(compiled)
  @compiled = compiled
end

Public Instance Methods

run_js_cb(cbname, _budget, arguments) click to toggle source
# File lib/sqreen/js/exec_js_runnable.rb, line 17
def run_js_cb(cbname, _budget, arguments)
  @compiled.call(cbname, *arguments)
end