small medium large xlarge

19 Oct 2010, 16:25
Arun Srini (4 posts)

In page - 140 - to add the count of same prod in line item - in cart.rb

line_items « current_item

What does this do? I don’t see any discussion of this operator before this in book. Please help.All I could think of was this adds the current_item object to the line_items array.

26 Oct 2010, 19:14
Stephen Ball (5 posts)

That’s some pure Ruby syntax. It just says: append current_item to the line_items array, exactly as you surmised.

You must be logged in to comment