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.
208 209 210 211 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 208 def initialize(row, line) @values = row @line = line end |
Instance Method Details
#accept(formatter) ⇒ Object
217 218 219 220 221 222 223 224 225 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 217 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
213 214 215 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 213 def dom_id "row_#{line}" end |
#exception ⇒ Object
231 232 233 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 231 def exception nil end |
#status ⇒ Object
227 228 229 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 227 def status :skipped end |