From: Sean O'Dell Date: 2004-06-08T01:40:48+09:00 Subject: Re: How to ducktype a Hash? On Monday 07 June 2004 06:13, Dave Burt wrote: > param.respond_to? '[]' and > param.respond_to? '[]=' and > !param.kind_of? String and > !param.kind_of? Array Other objects also respond to [] and []= which are not Strings or Arrays. The number of them are potentially infinite, so this is not what I consider a good solution. Sean O'Dell