From: Eric Christopherson Date: 2010-02-26T08:46:26+09:00 Subject: Re: Ruby class On Thu, Feb 25, 2010 at 10:09 AM, 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 methods are public if not specified otherwise.