Class: ProxyPacRb::RubyRhinoRuntime

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

Overview

Ruby Rhine 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)


86
87
88
89
90
91
# File 'lib/proxy_pac_rb/runtimes/rubyrhino.rb', line 86

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

#nameObject



82
83
84
# File 'lib/proxy_pac_rb/runtimes/rubyrhino.rb', line 82

def name
  'therubyrhino (Rhino)'
end