Class: Hivemind::VM
- Inherits:
-
Object
- Object
- Hivemind::VM
- Defined in:
- lib/hivemind/vm.rb
Instance Method Summary collapse
-
#initialize(ast) ⇒ VM
constructor
A new instance of VM.
- #run(env) ⇒ Object
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 |