Class: Cucumber::Formatter::LegacyApi::Ast::MultilineArg::DataTable

Inherits:
MultilineArgument::DataTable show all
Defined in:
lib/cucumber/formatter/legacy_api/ast.rb

Constant Summary

Constants inherited from MultilineArgument::DataTable

MultilineArgument::DataTable::NULL_CONVERSIONS

Instance Attribute Summary

Attributes inherited from MultilineArgument::DataTable

#cell_matrix, #file

Instance Method Summary collapse

Methods inherited from MultilineArgument::DataTable

#append_to, #cells_rows, #col_width, #column_names, #columns, default_arg_name, #description_for_visitors, #diff!, #dup, #each_cells_row, from, #has_text?, #hashes, #header_cell, #headers, #index, #initialize, #location, #map_column, #map_column!, #map_headers, #map_headers!, #match, #raw, #rows, #rows_hash, #symbolic_hashes, #to_hash, #to_json, #to_s, #to_step_definition_arg, #transpose, #verify_column, #verify_table_width

Constructor Details

This class inherits a constructor from Cucumber::MultilineArgument::DataTable

Instance Method Details

#accept(formatter) ⇒ Object



358
359
360
361
362
363
364
365
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 358

def accept(formatter)
  formatter.before_multiline_arg self
  node.raw.each_with_index do |row, index|
    line = node.location.line + index
    DataTableRow.new(row, line).accept(formatter)
  end
  formatter.after_multiline_arg self
end

#nodeObject



354
355
356
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 354

def node
  @ast_table
end