Class: ExecJS::MiniRacerRuntime

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

Defined Under Namespace

Classes: Context

Instance Method Summary collapse

Methods inherited from Runtime

#compile, #context_class, #deprecated?, #eval, #exec

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)


96
97
98
99
100
101
# File 'lib/execjs/mini_racer_runtime.rb', line 96

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

#nameObject



92
93
94
# File 'lib/execjs/mini_racer_runtime.rb', line 92

def name
  "mini_racer (V8)"
end