Method: CSVR::App#parse

Defined in:
lib/csvr.rb

#parseObject



26
27
28
29
30
31
32
# File 'lib/csvr.rb', line 26

def parse
	@headers ||= CSVR::Parse.headers(@file)
	@rows = CSVR::Parse.rows(@file, @headers, @filters)
	puts "HEADERS: #{@headers}, #{@headers.class}"
	puts "ROWS: #{@rows.sample}, #{@rows.sample.class}, #{@rows.class}, #{@rows.empty?}"
	@types = CSVR::Parse.type(@headers, @rows[0]) unless @rows.empty?
end