Module: CSVConv
- Defined in:
- lib/csvconv.rb,
lib/csvconv/parser.rb,
lib/csvconv/version.rb,
lib/csvconv/converter.rb,
lib/csvconv/formatter.rb
Overview
CSV converter
Defined Under Namespace
Modules: Formatter, Parser Classes: Converter
Constant Summary collapse
- VERSION =
'0.0.2'
Class Method Summary collapse
- .csv2json(input, options) ⇒ Object
- .csv2ltsv(input, options) ⇒ Object
- .csv2yaml(input, options) ⇒ Object
Class Method Details
.csv2json(input, options) ⇒ Object
8 9 10 11 |
# File 'lib/csvconv.rb', line 8 def csv2json(input, ) cv = Converter.new(:json, ) cv.convert(input) end |