class CSV::Row

Attributes

line_number[R]

Public Class Methods

new(*args) click to toggle source

Defines method style accessors based on header row names.

# File lib/csv/autoparser.rb, line 10
def initialize(*args)
  orig_initialize(*args)
  if field_row?
    headers.each do |h|
      define_singleton_method(CSV::AutoParser.convert_header_to_method_name(h)) { fetch(h) }
    end
  end
end
Also aliased as: orig_initialize

Public Instance Methods

orig_initialize(*args)
Alias for: new