index( header )index( header, offset ) Instance Public methods This method will return the index of a field with the provided header. The offset can be used to locate duplicate header names, as described in #field.
inspect() Instance Public methods A summary of fields, by header, in an ASCII compatible String.
key?(header) Instance Public methods Alias for: has_key?
member?(header) Instance Public methods Alias for: has_key?
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.
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
to_hash() Instance Public methods Collapses the row into a simple Hash. Be warning that this discards field order and clobbers duplicate fields.
to_s(options = Hash.new) Instance Public methods Alias for: to_csv
values_at(*headers_and_or_indices) Instance Public methods Alias for: fields
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()
Page 129 of 11844