Class: Mealy::Executer Private
- Inherits:
-
Object
- Object
- Mealy::Executer
- Defined in:
- lib/mealy/runner.rb
Overview
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(mealy) ⇒ Executer
constructor
private
A new instance of Executer.
-
#run(enum) ⇒ Object
private
same as calling #execute.
Constructor Details
#initialize(mealy) ⇒ Executer
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Executer.
10 11 12 13 |
# File 'lib/mealy/runner.rb', line 10 def initialize(mealy) @mealy = mealy @state = nil end |
Instance Method Details
#run(enum) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
same as calling Mealy#execute
16 17 18 19 20 21 22 |
# File 'lib/mealy/runner.rb', line 16 def run(enum) start enum.each { |c| run_for_token(c) } finish end |