Class: Cucumber::Formatter::LegacyApi::Ast::DataTableRow
- Inherits:
-
Object
- Object
- 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.
211 212 213 214 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 211 def initialize(row, line) @values = row @line = line end |
Instance Method Details
#accept(formatter) ⇒ Object
220 221 222 223 224 225 226 227 228 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 220 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
216 217 218 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 216 def dom_id "row_#{line}" end |
#exception ⇒ Object
234 235 236 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 234 def exception nil end |
#status ⇒ Object
230 231 232 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 230 def status :skipped end |