Class: InCSV::Schema
- Inherits:
-
Object
- Object
- InCSV::Schema
- Defined in:
- lib/incsv/schema.rb
Instance Method Summary collapse
- #columns ⇒ Object
-
#initialize(csv) ⇒ Schema
constructor
A new instance of Schema.
Constructor Details
#initialize(csv) ⇒ Schema
Returns a new instance of Schema.
5 6 7 |
# File 'lib/incsv/schema.rb', line 5 def initialize(csv) @csv = csv end |
Instance Method Details
#columns ⇒ Object
9 10 11 |
# File 'lib/incsv/schema.rb', line 9 def columns @columns ||= parsed_columns end |