From: Sean O'Dell Date: 2004-06-07T01:03:03+09:00 Subject: Re: How to ducktype a Hash? On Sunday 06 June 2004 05:38, Kristof Bastiaensen wrote: > > Hm, just an idea, but perhaps is tagging not such an ugly solution? > You could create a dummy module Hashlike, include it in your hashlike > classes, and test with > obj.is_a? Hashlike or obj.is_a? Hash It's a decent solution, I think. My only complaint is that I have to hack it in, instead of the solution being something Ruby does automatically for all classes. Sean O'Dell