to_a()
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 812 def to_a @table.inject([headers]) do |array, row| if row.header_row? array else array + [row.fields] end end end