Class: Cucumber::Ast::OutlineTable::ExampleCells

Inherits:
Cells
  • Object
show all
Defined in:
lib/cucumber/ast/outline_table.rb

Instance Method Summary collapse

Instance Method Details

#accept(visitor, status) ⇒ Object



28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/cucumber/ast/outline_table.rb', line 28

def accept(visitor, status)
  if header?
    @cells.each do |cell|
      visitor.visit_table_cell(cell, :thead)
    end
    nil
  else
    exception = @table.execute_row(self, visitor) do |cell, status|
      visitor.visit_table_cell(cell, status)
    end
  end
end