Class: Sqreen::Js::ExecJsRunnable
- Inherits:
-
ExecutableJs
- Object
- ExecutableJs
- Sqreen::Js::ExecJsRunnable
- Defined in:
- lib/sqreen/js/exec_js_runnable.rb
Instance Method Summary collapse
-
#initialize(compiled) ⇒ ExecJsRunnable
constructor
A new instance of ExecJsRunnable.
- #run_js_cb(cbname, _budget, arguments) ⇒ Object
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 |