Class: PAC::Runtimes::MustangRuntime

Inherits:
Object
  • Object
show all
Defined in:
lib/pac/runtimes/mustang.rb

Defined Under Namespace

Classes: Context

Instance Method Summary collapse

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)


52
53
54
55
56
57
# File 'lib/pac/runtimes/mustang.rb', line 52

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

#compile(source) ⇒ Object



48
49
50
# File 'lib/pac/runtimes/mustang.rb', line 48

def compile(source)
  Context.new(source)
end

#nameObject



44
45
46
# File 'lib/pac/runtimes/mustang.rb', line 44

def name
  "Mustang (V8)"
end