Alex Alex wrote:
> What class have object "current_item"?

In general you won't know until you run your code, as you've not shown 
any code which adds something to @items. For example:

cart = Cart.new
product = Flurble.new
cart.items << product
cart.add_product(product)

In this case, current_item will be of class Flurble.
-- 
Posted via http://www.ruby-forum.com/.