Class: Mealy::Runner Private

Inherits:
Executer show all
Defined in:
lib/mealy/runner.rb

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

Methods inherited from Executer

#initialize

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

Parameters:

  • emit

    the emitted token


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