Class: ExecJS::RubyRacerRuntime

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

- (Boolean) available?

Returns:

  • (Boolean)


98
99
100
101
102
103
# File 'lib/execjs/ruby_racer_runtime.rb', line 98

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

- (Object) name



94
95
96
# File 'lib/execjs/ruby_racer_runtime.rb', line 94

def name
  "therubyracer (V8)"
end