Class: Hivemind::VM

Inherits:
Object
  • Object
show all
Defined in:
lib/hivemind/vm.rb

Instance Method Summary collapse

Constructor Details

#initialize(ast) ⇒ VM

Returns a new instance of VM.



6
7
8
# File 'lib/hivemind/vm.rb', line 6

def initialize(ast)
  @ast = ast
end

Instance Method Details

#run(env) ⇒ Object



10
11
12
# File 'lib/hivemind/vm.rb', line 10

def run(env)
  @ast.run env
end