Class: CSVR::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/csvr/cli.rb

Instance Method Summary collapse

Instance Method Details

#apiObject



8
9
10
11
12
13
# File 'lib/csvr/cli.rb', line 8

def api 
		puts "csvr = CSVR.open('path/to/file')"
	puts "csvr.create('db_name', 'table_name')"
	puts "(optional) csvr.headers = ['array','of','custom', 'headers]"
	puts "(optional) csvr.rows = ['array', 'of' 'strings' 'to' 'parse']"
end