==(other) Instance Public methods Returns true if all rows of this table ==() other's rows.
<<(row_or_array) Instance Public methods Adds a new row to the bottom end of this table. You can provide an Array, which will be converted to a CSV::Row (inheriting the table's headers()), or a CSV::Row. This method returns the table for chaining.
new(array_of_rows) Class Public methods Construct a new CSV::Table from array_of_rows, which are expected to be CSV::Row objects. All rows are assumed to have the same headers. A CSV::Table object supports the following Array methods through delegation: empty?() length() size()
values_at(*headers_and_or_indices) Instance Public methods Alias for: fields
to_s(options = Hash.new) Instance Public methods Alias for: to_csv
to_hash() Instance Public methods Collapses the row into a simple Hash. Be warning that this discards field order and clobbers duplicate fields.
to_csv(options = Hash.new) Instance Public methods Returns the row as a CSV String. Headers are not used. Equivalent to: csv_row.fields.to_csv( options ) to_s
push(*args) Instance Public methods A shortcut for appending multiple fields. Equivalent to: args.each { |arg| csv_row << arg } This method returns the row for chaining.
member?(header) Instance Public methods Alias for: has_key?
key?(header) Instance Public methods Alias for: has_key?
Page 2203 of 2275