On Tuesday 08 June 2004 16:40, Gavin Sinclair wrote:
> On Wednesday, June 9, 2004, 4:46:30 AM, Sean wrote:
> > Ruby/Interface 0.1-1
> >
> > Homepage/Documentation: http://interface.rubyforge.org/
>
> Nice.  But the Hash example on the page should be more comprehensive.
> It's ironic that this was driven by wanting to tell an array from a
> hash, and you've defined a :hash interface with just [] and []=  !

The name :hash tells you the purpose of the interface, not the method list.  
The method list is just to aid enforcement (to ensure they exist for the 
interface, and to ensure they have the same parameters so you can always 
depend on them being there as you expect them).

[].has_interface?(:hash) => false

Make sense?

	Sean O'Dell