On Thu, Feb 25, 2010 at 10:09 AM, Nick Brown <nick / nick-brown.com> 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.