Class: ExecJS::DuktapeRuntime

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


62
63
64
65
66
67
# File 'lib/execjs/duktape_runtime.rb', line 62

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

#nameObject



58
59
60
# File 'lib/execjs/duktape_runtime.rb', line 58

def name
  "Duktape"
end