Class: Hivemind::UniversalAST::If
- Inherits:
-
Object
- Object
- Hivemind::UniversalAST::If
- Defined in:
- lib/hivemind/vm.rb
Instance Method Summary collapse
Instance Method Details
#run(env) ⇒ Object
76 77 78 79 80 81 82 |
# File 'lib/hivemind/vm.rb', line 76 def run(env) if @test.run(env) == env.top[:@true] @true_branch.run env else @else_branch.run env end end |