class CSV::AutoParser::PreHeaderRow

The rows found before the header row are paired with file and line information. These objects are available through CSV::AutoParser#pre_header_rows.

Attributes

line_number[R]

Public Class Methods

create(original_row, file, line) click to toggle source
# File lib/csv/autoparser.rb, line 32
def self.create original_row, file, line
  row = PreHeaderRow.new(original_row)
  row.instance_eval { @line_number = line }
  return row
end