Skip to content

Commit

Permalink
* Refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
ledestin committed Aug 17, 2014
1 parent 01c4fb5 commit 24957ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shopping_cart.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class ShoppingCart
def self.parse(string)
data = CSV.parse(string, :col_sep => ", ", :converters => :numeric)
data.shift # skip header.
ShoppingCart.new(data.map! { |row| Item.new *row })
new data.map! { |row| Item.new *row }
end

attr_reader :items
Expand Down

0 comments on commit 24957ac

Please sign in to comment.