Sha256: e47df9385708a61a0b3e3b5a643641301d13c6bbb7d5fb5c9f16e9378e2c7c1a
Contents?: true
Size: 279 Bytes
Versions: 21
Compression:
Stored size: 279 Bytes
Contents
require 'csv' module TaskwarriorWeb::Parser::Csv def self.parse(csv) rows = [] CSV.parse(csv, :headers => true, :quote_char => "'", :header_converters => :symbol, :converters => :all) do |row| rows << Hash[row.headers.zip(row.fields)] end rows end end
Version data entries
21 entries across 21 versions & 1 rubygems