Sha256: b46a9e93541a03c629be7fd749f3d96ab15be76692b5402461cd71ddcffbe990
Contents?: true
Size: 254 Bytes
Versions: 3
Compression:
Stored size: 254 Bytes
Contents
require "csv" module StructuredCsv module Common def self.load_csv(csvfile) # warn csvfile content = File.read(csvfile, encoding: "bom|utf-8").scrub CSV.parse(content, liberal_parsing: true, encoding: "UTF-8") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
structured_csv-0.2.1 | lib/structured_csv/common.rb |
structured_csv-0.2.0 | lib/structured_csv/common.rb |
structured_csv-0.1.1 | lib/structured_csv/common.rb |