Not a huge deal, but you may find it interesting.  You could call:
```rb
quantity = case row[:quantity]
when /cup/ then quantity * 800
when ...
```
where the interesting thing is `quantity = case ...` and the return value of the case statement will be passed to quantity.