From: gabriele renzi Date: 2004-06-13T18:13:39+09:00 Subject: Re: How to ducktype a Hash? il Sun, 13 Jun 2004 16:56:13 +0900, Jean-Hugues ROBERT ha scritto:: >At 20:23 12/06/2004 +0900, you wrote: >>Sean O'Dell wrote: >>> So, how do I positively identify when an object is a hash or at least behaves >>> like a hash? >> >>Use the method #to_hash instead. All hash-like objects should be able to >>give a hash-representation of themselves. [ot] I'm getting more convinced every day: would'nt be nice to have some kind of global matrix of conversion bettween types and something on the line of an 'as' operator?