Class: Raheui::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/raheui/runner.rb

Overview

Run Aheui code.

Defined Under Namespace

Classes: Point

Instance Method Summary collapse

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

#runObject

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