Method: ExecJS::RubyRacerRuntime::Context#exec
- Defined in:
- lib/execjs/ruby_racer_runtime.rb
#exec(source, options = {}) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/execjs/ruby_racer_runtime.rb', line 15 def exec(source, = {}) source = encode(source) if /\S/ =~ source eval "(function(){#{source}})()", end end |