to_a()
public
Returns the table as an Array of Arrays. Headers
will be the first row, then all of the field rows will follow.
# File lib/csv.rb, line 881
def to_a
array = [headers]
@table.each do |row|
array.push(row.fields) unless row.header_row?
end
return array
end