Type:
Class

A CSV::Row is part Array and part Hash. It retains an order for the fields and allows duplicates just as an Array would, but also allows you to access fields by name just as you could if they were in a Hash.

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

to_s
  • References/Ruby on Rails/Ruby/Classes/CSV/CSV::Row

to_s(options = Hash.new) Instance Public methods Alias for:

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

fields(*headers_and_or_indices) Instance Public methods This method accepts

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

inspect() Instance Public methods A summary of fields, by header, in an ASCII

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

values_at(*headers_and_or_indices) Instance Public methods Alias for:

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

Instance Public methods If a two-element Array is provided, it is assumed to be a header and field and the pair is appended. A

2025-01-10 15:47:30
header?
  • References/Ruby on Rails/Ruby/Classes/CSV/CSV::Row

header?(name) Instance Public methods Returns true if name

2025-01-10 15:47:30
key?
  • References/Ruby on Rails/Ruby/Classes/CSV/CSV::Row

key?(header) Instance Public methods Alias for:

2025-01-10 15:47:30
member?
  • References/Ruby on Rails/Ruby/Classes/CSV/CSV::Row

member?(header) Instance Public methods Alias for:

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

[]=( header, value )[]=( header, offset, value )[]=( index, value ) Instance Public methods

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

headers() Instance Public methods Returns the headers of this row.

2025-01-10 15:47:30