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)


93
94
95
96
97
98
# File 'lib/execjs/johnson_runtime.rb', line 93

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

#deprecated?Boolean

Returns:

  • (Boolean)


100
101
102
# File 'lib/execjs/johnson_runtime.rb', line 100

def deprecated?
  true
end

#nameObject



89
90
91
# File 'lib/execjs/johnson_runtime.rb', line 89

def name
  "Johnson (SpiderMonkey)"
end