From: Jun Young Kim Date: 2008-12-29T17:17:08+09:00 Subject: Re: use not equal(!=) operator as a Symbol. --Apple-Mail-8-975867119 Content-Type: text/plain; charset=EUC-KR; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable irb(main):006:0> a.send(:!=3D, 2) SyntaxError: compile error (irb):6: syntax error, unexpected tNEQ, expecting tSTRING_CONTENT or =20 tSTRING_DBEG or tSTRING_DVAR or tSTRING_END a.send(:!=3D, 2) ^ from (irb):6 from :0 As you see, ruby can recognize a !=3D as a tNEG(not equals). so , I convinced a method is existed for this type of a comparison. I have to use a workaround way, ;-< 2008. 12. 29, =BF=C0=C8=C4 4:54, Ryan Davis =C0=DB=BC=BA: > > On Dec 28, 2008, at 22:58 , Jun Young Kim wrote: > >> irb(main):008:0> a.send('!=3D', 2) >> NoMethodError: undefined method `!=3D' for 1:Fixnum >> from (irb):8:in `send' >> from (irb):8 >> from :0 > > there is no '!=3D' method, there is only '=3D=3D'. you should send = '=3D=3D' =20 > and not/! the result: > > ! a.send('=3D=3D', 2) > > > --Apple-Mail-8-975867119--