Alex: Because Ruby is a dynamically-typed language, it doesn't have to 
"see" the method. At runtime, if current_item happens to be an object 
with responds to the 'increment_quantity' method, then 
current_item.increment_quantity will work fine.

If the object does not respond to that method, it will raise an error.
-- 
Posted via http://www.ruby-forum.com/.