>On Sat, 5 Jun 2004, Sean O'Dell wrote: > I need to detect when an object is a hash-like container for other objects, > one which responds to [] and which can index using any object as a value > (string, etc.). You have two requirements: that it respond to [], and that it can index any object. I think you can check these both at run-time with: def isHash(o) begin o[Object.new] rescue return false end return true end Does this meet your needs? Steven "You're way over budget. Can you show me the cause?" "It depends. Can mirrors reflect your image?"