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.

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

inspect() Instance Public methods Shows the mode and size of this table in a

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

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

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

==(other) Instance Public methods Returns true if all rows of this

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

new(array_of_rows) Class Public methods Construct a new

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

[]=(index_or_header, value) Instance Public methods In the default mixed mode

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

[](index_or_header) Instance Public methods In the default mixed mode, this

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

by_col!() Instance Public methods Switches the mode of this table to column

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

delete_if(&block) Instance Public methods Removes any column or row for

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

<<(row_or_array) Instance Public methods Adds a new row to the bottom

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 Switches the mode of this table to

2025-01-10 15:47:30