module ExecJS
Constants
- VERSION
Attributes
runtime[R]
Public Class Methods
compile(source)
click to toggle source
# File lib/execjs/module.rb, line 26 def compile(source) runtime.compile(source) end
eval(source)
click to toggle source
# File lib/execjs/module.rb, line 22 def eval(source) runtime.eval(source) end
exec(source)
click to toggle source
# File lib/execjs/module.rb, line 18 def exec(source) runtime.exec(source) end
root()
click to toggle source
# File lib/execjs/module.rb, line 30 def root @root ||= File.expand_path("..", __FILE__) end
runtime=(runtime)
click to toggle source
# File lib/execjs/module.rb, line 13 def runtime=(runtime) raise RuntimeUnavailable, "#{runtime.name} is unavailable on this system" unless runtime.available? @runtime = runtime end
runtimes()
click to toggle source
# File lib/execjs/runtimes.rb, line 91 def self.runtimes Runtimes.runtimes end
windows?()
click to toggle source
# File lib/execjs/module.rb, line 34 def windows? @windows ||= RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ end