Class: CSVR::CLI
- Inherits:
-
Thor
- Object
- Thor
- CSVR::CLI
- Defined in:
- lib/csvr/cli.rb
Instance Method Summary collapse
Instance Method Details
#api ⇒ Object
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 |