new

new(headers, fields, header_row = false)
Class Public methods

Construct a new CSV::Row from headers and fields, which are expected to be Arrays. If one Array is shorter than the other, it will be padded with nil objects.

The optional header_row parameter can be set to true to indicate, via #header_row? and #field_row?, that this is a header row. Otherwise, the row is assumes to be a field row.

A CSV::Row object supports the following Array methods through delegation:

  • empty?()

  • length()

  • size()

doc_ruby_on_rails
2015-04-01 17:56:00
Comments
Leave a Comment

Please login to continue.