Class: CSV::FieldInfo
- Inherits:
-
Struct
- Object
- Struct
- CSV::FieldInfo
- Defined in:
- lib/csv.rb
Overview
A FieldInfo Struct contains details about a field's position in the data source it was read from. CSV will pass this Struct to some blocks that make decisions based on field structure. See CSV.convert_fields() for an example.
index
-
The zero-based index of the field in its row.
line
-
The line of the data source this row is from.
header
-
The header for the column, when available.
Instance Attribute Summary collapse
-
#header ⇒ Object
Returns the value of attribute header.
-
#index ⇒ Object
Returns the value of attribute index.
-
#line ⇒ Object
Returns the value of attribute line.
Instance Attribute Details
#header ⇒ Object
Returns the value of attribute header
872 873 874 |
# File 'lib/csv.rb', line 872 def header @header end |
#index ⇒ Object
Returns the value of attribute index
872 873 874 |
# File 'lib/csv.rb', line 872 def index @index end |
#line ⇒ Object
Returns the value of attribute line
872 873 874 |
# File 'lib/csv.rb', line 872 def line @line end |