Class: Context::DSL::FlowBlock
Overview
automatic stepping to next statement
Instance Attribute Summary
Attributes inherited from Block
#child_statements, #context_dsl, #parent_block
Instance Method Summary collapse
Methods inherited from Block
Constructor Details
This class inherits a constructor from Context::DSL::Block
Instance Method Details
#after_execute(statement) ⇒ Object
56 57 58 59 60 61 62 |
# File 'lib/mashfeed/dsl.rb', line 56 def after_execute(statement) input_statements = child_statements.clone child_statements[1..-1].each do |statement| input_statement = input_statements.shift statement.inputs = [input_statement] if statement.inputs.empty? && !input_statement.nil? end end |
#to_statement ⇒ Object
64 65 66 |
# File 'lib/mashfeed/dsl.rb', line 64 def to_statement @child_statements.last end |