From: "Shot (Piotr Szotkowski)" Date: 2009-09-25T06:02:38+09:00 Subject: Re: Redefining hat operator for Proc --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable bparanj: > I am developing a gem where I need to redefine the <=3D> operator for > Proc. This operator shows up in the methods list when I print the > output of methods call but I don't see it in the list of private or > protected methods. >> puts RUBY_DESCRIPTION ruby 1.9.1p243 (2009-07-16 revision 24175) [x86_64-linux] =3D> nil >> Proc.instance_methods.include? :<=3D> =3D> false Where do you see it? Also, >> a =3D Proc.new {} =3D> # >> b =3D Proc.new {} =3D> # >> a <=3D> b NoMethodError: undefined method `<=3D>' for # from (irb):8 from /home/shot/.rvm/ruby-1.9.1-p243/bin/irb:12:in `
' =E2=80=94 Shot --=20 who let the logs out? [kodz] --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkq73mkACgkQi/mCfdEo8UrzQgCePV0FgG3jbvpKYF6xXQRlNeex iLIAnj1FQnoh7SsBVd7Ir2C3vXpCapIr =qP36 -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/--