Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

CSV::Table#to_a

to_a

Returns the table as an Array of Arrays. Headers will be the first row, then all of the field rows will follow.

See also #push #to_csv #inspect #to_s also in 3.3 · 3.2 · 3.1