-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2005.12.16 02:44, Mark Ericson <mark.ericson / gmail.com> wrote:
> > The thrust of duck typing, as I
> > understand it, is that you just ask an object to do something --
> > without regard to its class, and quite likely without doing a
> > respond_to? call first.
> 
> I've pondered if duck typing is about an object being able to respond
> to a specific method or if it is about a set of methods.   I also
> wonder if a mechanism like Objective-C's  'protocol' would be useful
> in Ruby.

The smallest set of methods that are required for a
certain operation to complete as it is expected to :)

> - Mark


E 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDogyQxvA1l6h+MUMRAuCTAJ9giSseOXvQ9Jvm9gAUw27XJz8pjwCZAede
bxQ5bNkjcG9gi9ra8ZKp4mM=
=mtOF
-----END PGP SIGNATURE-----