Class: Cucumber::Formatter::LegacyApi::Ast::DataTableRow

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/formatter/legacy_api/ast.rb

Direct Known Subclasses

LegacyTableRow

Instance Method Summary collapse

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_idObject



211
212
213
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 211

def dom_id
  "row_#{line}"
end

#exceptionObject



229
230
231
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 229

def exception
  nil
end

#statusObject



225
226
227
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 225

def status
  :skipped
end