Class: InCSV::Schema

Inherits:
Object
  • Object
show all
Defined in:
lib/incsv/schema.rb

Instance Method Summary collapse

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

#columnsObject



9
10
11
# File 'lib/incsv/schema.rb', line 9

def columns
  @columns ||= parsed_columns
end