Class: ExecJS::MustangRuntime

Inherits:
Runtime
  • Object
show all
Defined in:
lib/execjs/mustang_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)


65
66
67
68
69
70
# File 'lib/execjs/mustang_runtime.rb', line 65

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

#deprecated?Boolean

Returns:

  • (Boolean)


72
73
74
# File 'lib/execjs/mustang_runtime.rb', line 72

def deprecated?
  true
end

#nameObject



61
62
63
# File 'lib/execjs/mustang_runtime.rb', line 61

def name
  "Mustang (V8)"
end