Class: Cucumber::Formatter::LegacyApi::Ast::DataTableRow
- Defined in:
- lib/cucumber/formatter/legacy_api/ast.rb
Direct Known Subclasses
Instance Method Summary collapse
- #accept(formatter) ⇒ Object
- #dom_id ⇒ Object
- #exception ⇒ Object
-
#initialize(row, line) ⇒ DataTableRow
constructor
A new instance of DataTableRow.
- #status ⇒ Object
Constructor Details
#initialize(row, line) ⇒ DataTableRow
Returns a new instance of DataTableRow.
206 207 208 209 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 206 def initialize(row, line) @values = row @line = line end |
Instance Method Details
#accept(formatter) ⇒ Object
215 216 217 218 219 220 221 222 223 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 215 def accept(formatter) formatter.before_table_row(self) values.each do |value| formatter.before_table_cell(value) formatter.table_cell_value(value, status) formatter.after_table_cell(value) end formatter.after_table_row(self) end |
#dom_id ⇒ Object
211 212 213 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 211 def dom_id "row_#{line}" end |
#exception ⇒ Object
229 230 231 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 229 def exception nil end |
#status ⇒ Object
225 226 227 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 225 def status :skipped end |