Sha256: 10e10ae24d91494085b0c09fa09938a3de9825cac62474a51aae24238908952b
Contents?: true
Size: 214 Bytes
Versions: 4
Compression:
Stored size: 214 Bytes
Contents
#coding: utf-8 require 'csv' class CSV def self.example_data data = "id,firstname,lastname\n1,One,One\n2,Two,Two\n4,Four,Four\n5,Five,Five" CSV.parse(data, {:col_sep => ',', :headers => true}) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
smart_csv-0.0.9 | lib/csv/csv.rb |
smart_csv-0.0.7 | lib/csv/csv.rb |
smart_csv-0.0.6 | lib/csv/csv.rb |
smart_csv-0.0.5 | lib/csv/csv.rb |