Nick Brown wrote: > 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. And another nuby question: What class have object "current_item"? -- Posted via http://www.ruby-forum.com/.