Class: ExecJS::RubyRhinoRuntime

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



82
83
84
85
86
87
# File 'lib/execjs/ruby_rhino_runtime.rb', line 82

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

#nameObject



78
79
80
# File 'lib/execjs/ruby_rhino_runtime.rb', line 78

def name
  "therubyrhino (Rhino)"
end