Class: Raheui::Runner
- Inherits:
-
Object
- Object
- Raheui::Runner
- Defined in:
- lib/raheui/runner.rb
Overview
Run Aheui code.
Defined Under Namespace
Classes: Point
Instance Method Summary collapse
-
#initialize(code) ⇒ Runner
constructor
Initialize a Runner.
-
#run ⇒ Object
Run the Aheui Code.
Constructor Details
#initialize(code) ⇒ Runner
Initialize a Runner. Get a Code instance and initialize Stores.
code - The Code instance to execute.
36 37 38 |
# File 'lib/raheui/runner.rb', line 36 def initialize(code) @code = code end |
Instance Method Details
#run ⇒ Object
Run the Aheui Code.
Returns the Integer exit code.
43 44 45 46 47 |
# File 'lib/raheui/runner.rb', line 43 def run reset step until @finished @selected_store.pop || 0 end |