Class: Mealy::Runner Private
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Extends Executer with emitting capabilities.
Instance Method Summary collapse
-
#emit(emit) ⇒ Object
private
emit tokens from the DSL blocks.
-
#run(enum, &emit_block) ⇒ Object
private
same as calling #run.
Methods inherited from Executer
Constructor Details
This class inherits a constructor from Mealy::Executer
Instance Method Details
#emit(emit) ⇒ 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.
emit tokens from the DSL blocks
71 72 73 |
# File 'lib/mealy/runner.rb', line 71 def emit(emit) @emit_block.call(emit) end |
#run(enum, &emit_block) ⇒ 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#run
76 77 78 79 80 |
# File 'lib/mealy/runner.rb', line 76 def run(enum, &emit_block) @emit_block = emit_block super end |