Skip to content

Commit

Permalink
example with csvparser options
Browse files Browse the repository at this point in the history
  • Loading branch information
eval committed Apr 8, 2011
1 parent dfc2e98 commit f083dca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ Examples
end

csv =<<-CSV.gsub(/^ +/,'')
product_uid,product_name,product_description,product_price
1200,Ham,like you never tasted before,19.99
product_uid;product_name;product_description;product_price
1200;Ham;like you never tasted before;19.99
CSV

p1 = Shop::Product.parse(csv).first
p1 = Shop::Product.parse(csv, :col_sep => ';').first
p1.price_in_cents # 1999

Requirements
Expand Down

0 comments on commit f083dca

Please sign in to comment.