From: "Shot (Piotr Szotkowski)" Date: 2007-01-30T16:26:18+09:00 Subject: Re: Sane #hash implementation? --QRtLtq+kfJNLc57H Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Eric Hodel: > On Jan 29, 2007, at 14:38, Shot (Piotr Szotkowski) wrote: >> I=E2=80=99m stuck when it comes to Block#hash, though; I need these to b= e true: >> Block.new.hash =3D=3D Block.new.hash >> Block.new([1,2]).hash =3D=3D Block.new([1,2]).hash > Try: > class Block > def hash > to_a.hash > end > end Thanks a lot, Eric! This is the =E2=80=98d=E2=80=99oh!=E2=80=99 solution I = was looking for. :) -- Shot --=20 Of course I can see iso-8859-1 characters, I'm French. -- Christian Maril= lat --QRtLtq+kfJNLc57H Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFFvvM3i/mCfdEo8UoRAtQlAJ9wtMQSFBxo/zH6cEwTFJ5sh4LznACghTX/ BQdDTFcH9TwSFHNQ1i/LEeU= =GaVm -----END PGP SIGNATURE----- --QRtLtq+kfJNLc57H--