willcosgrove/cartman — pull request #2 by nathanbertram (2012-10-25 05:47:16+00:00)
Title: Remove and get tweaks

1. remove_item() requires I have the object I pass in respond to type: ie. "#{item.type}:#{item.id}" - so I made the get_item() public so it's possible to do this.

2. Added a instance_of? to remove_item() so that I can just pass in an object. Ie. Bottle.first

If you agree with me these changes - I'll write some tests :+1: