Class: Cucumber::Ast::OutlineTable::ExampleCells
- Defined in:
- lib/cucumber/ast/outline_table.rb
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #create_step_invocations!(scenario_outline) ⇒ Object
- #skip_invoke! ⇒ Object
Instance Method Details
#accept(visitor) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/cucumber/ast/outline_table.rb', line 45 def accept(visitor) if header? @cells.each do |cell| cell.status = :skipped_param visitor.visit_table_cell(cell) end else visitor.step_mother.before_and_after(self) do @step_invocations.each do |step_invocation| step_invocation.invoke(visitor.step_mother, visitor.) @exception ||= step_invocation.exception end @cells.each do |cell| visitor.visit_table_cell(cell) end end end end |
#create_step_invocations!(scenario_outline) ⇒ Object
35 36 37 |
# File 'lib/cucumber/ast/outline_table.rb', line 35 def create_step_invocations!(scenario_outline) @step_invocations = scenario_outline.step_invocations(self) end |
#skip_invoke! ⇒ Object
39 40 41 42 43 |
# File 'lib/cucumber/ast/outline_table.rb', line 39 def skip_invoke! @step_invocations.each do |step_invocation| step_invocation.skip_invoke! end end |