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



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_idObject



216
217
218
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 216

def dom_id
  "row_#{line}"
end

#exceptionObject



234
235
236
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 234

def exception
  nil
end

#statusObject



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

def status
  :skipped
end