module CSVConv

CSV Converter

CSV converter

Constants

VERSION

Public Class Methods

csv2json(input, options) click to toggle source
# File lib/csvconv.rb, line 8
def csv2json(input, options)
  cv = Converter.new(:json, options)
  cv.convert(input)
end
csv2ltsv(input, options) click to toggle source
# File lib/csvconv.rb, line 18
def csv2ltsv(input, options)
  cv = Converter.new(:ltsv, options)
  cv.convert(input)
end
csv2yaml(input, options) click to toggle source
# File lib/csvconv.rb, line 13
def csv2yaml(input, options)
  cv = Converter.new(:yaml, options)
  cv.convert(input)
end

Private Instance Methods

csv2json(input, options) click to toggle source
# File lib/csvconv.rb, line 8
def csv2json(input, options)
  cv = Converter.new(:json, options)
  cv.convert(input)
end
csv2ltsv(input, options) click to toggle source
# File lib/csvconv.rb, line 18
def csv2ltsv(input, options)
  cv = Converter.new(:ltsv, options)
  cv.convert(input)
end
csv2yaml(input, options) click to toggle source
# File lib/csvconv.rb, line 13
def csv2yaml(input, options)
  cv = Converter.new(:yaml, options)
  cv.convert(input)
end