Class: ProxyPacRb::RubyRacerRuntime

Inherits:
Runtime
  • Object
show all
Defined in:
lib/proxy_pac_rb/runtimes/rubyracer.rb

Overview

Ruby Racer Runtime

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)


106
107
108
109
110
111
# File 'lib/proxy_pac_rb/runtimes/rubyracer.rb', line 106

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

#nameObject



102
103
104
# File 'lib/proxy_pac_rb/runtimes/rubyracer.rb', line 102

def name
  'therubyracer (V8)'
end