Class: ExecJS::JohnsonRuntime

Inherits:
Runtime
  • Object
show all
Defined in:
lib/execjs/johnson_runtime.rb

Defined Under Namespace

Classes: Context

Instance Method Summary collapse

Methods inherited from Runtime

#compile, #context_class, #eval, #exec

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)


95
96
97
98
99
100
# File 'lib/execjs/johnson_runtime.rb', line 95

def available?
  require "johnson"
  true
rescue LoadError
  false
end

#deprecated?Boolean

Returns:

  • (Boolean)


102
103
104
# File 'lib/execjs/johnson_runtime.rb', line 102

def deprecated?
  true
end

#nameObject



91
92
93
# File 'lib/execjs/johnson_runtime.rb', line 91

def name
  "Johnson (SpiderMonkey)"
end