From: "Rene van Bevern (RvB)" Date: 2004-06-13T02:43:37+09:00 Subject: Re: How to ducktype a Hash? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sean O'Dell wrote: > On Saturday 12 June 2004 04:23, Rene van Bevern wrote: >> Use the method #to_hash instead. All hash-like objects should be able to >> give a hash-representation of themselves. > > Not necessarily. A database abstraction might act like a hash, but wouldn't > dump entire tables, which could contain tens of thousands of records, as one > big Ruby hash. That isn't positive identification. Okay, you are right. PStore is the first example that comes to my mind: It can act like a hash but doesn't have #to_hash. :/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAy0A9wm0wNHxxTHgRAvJ4AJsGzLxBbuUcVHWdFFyh6opogvVecgCeNv3E 9wUYM2W8vRgKn2ilT/osoYE= =eXEy -----END PGP SIGNATURE----- -- Rene van Bevern (RvB) http://www.pro-linux.de -- http://www.rvb-web.de