From: Kristof Bastiaensen Date: 2004-06-07T07:08:45+09:00 Subject: Re: How to ducktype a Hash? On Mon, 07 Jun 2004 01:05:14 +0900, Sean O'Dell wrote: >> Sorry for being slow, but I have no idea what you're after. Could you >> give an example of what you'd like to be able to write to achieve what >> you want? > > object.implements(:hash_interface) > > Sean O'Dell Like I said in another post, this is very easy :-) Module Hashlike end object.extend Hashlike object.is_a? Hashlike => true Cheers, Kristof Bastiaensen