Type:
Class

A CSV::Table is a two-dimensional data structure for representing CSV documents. Tables allow you to work with the data by row or column, manipulate the data, and even convert the results back to CSV, if needed.

All tables returned by CSV will be constructed from this class, if header row processing is activated.

values_at
  • References/Ruby on Rails/Ruby/Classes/CSV/CSV::Table

values_at(*indices_or_headers) Instance Public methods The mixed mode default

2025-01-10 15:47:30
by_row!
  • References/Ruby on Rails/Ruby/Classes/CSV/CSV::Table

by_row!() Instance Public methods Switches the mode of this table to row mode

2025-01-10 15:47:30
by_row
  • References/Ruby on Rails/Ruby/Classes/CSV/CSV::Table

by_row() Instance Public methods Returns a duplicate table object, in row mode

2025-01-10 15:47:30
each
  • References/Ruby on Rails/Ruby/Classes/CSV/CSV::Table

each(&block) Instance Public methods In the default mixed mode or row mode

2025-01-10 15:47:30
by_col_or_row
  • References/Ruby on Rails/Ruby/Classes/CSV/CSV::Table

by_col_or_row() Instance Public methods Returns a duplicate table object, in

2025-01-10 15:47:30
to_a
  • References/Ruby on Rails/Ruby/Classes/CSV/CSV::Table

to_a() Instance Public methods Returns the table as an Array of Arrays. Headers

2025-01-10 15:47:30
delete
  • References/Ruby on Rails/Ruby/Classes/CSV/CSV::Table

delete(index_or_header) Instance Public methods Removes and returns the indicated

2025-01-10 15:47:30
push
  • References/Ruby on Rails/Ruby/Classes/CSV/CSV::Table

push(*rows) Instance Public methods A shortcut for appending multiple rows.

2025-01-10 15:47:30
headers
  • References/Ruby on Rails/Ruby/Classes/CSV/CSV::Table

headers() Instance Public methods Returns the headers for the first row of this

2025-01-10 15:47:30
to_csv
  • References/Ruby on Rails/Ruby/Classes/CSV/CSV::Table

to_csv(options = Hash.new) Instance Public methods Returns the table as a complete

2025-01-10 15:47:30