Sha256: d327ca677b834f43a8a8c60fa4ffecf029779d09dad2246b2ca1172b55b2848c
Contents?: true
Size: 671 Bytes
Versions: 1
Compression:
Stored size: 671 Bytes
Contents
# HasherizeCsv [![Build Status](https://travis-ci.org/bbradbury/hasherize_csv.png)](https://travis-ci.org/bbradbury/hasherize_csv) Dead simple CSV parsing, with configurable regex selectors if required. Reads line-by-line, so you can parse big CSV files without running out of memory. ### Simple case Given sample_csv.csv ```csv Col1,Col2,Col3 Val1,Val2,Val3 Val4,Val5,Val6 ``` and ```ruby require 'hasherize_csv' @f = File.new("sample_csv.csv") @csv = HasherizeCsv::Csv.new(@f) @csv.each do |hash| puts hash.inspect end ``` The output will be ``` {'Col1' => 'Val1', 'Col2' => 'Val2', 'Col3' => 'Val3'} {'Col1' => 'Val4', 'Col2' => 'Val5', 'Col3' => 'Val6'} ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hasherize_csv-0.0.7 | README.md |