From: Jun Young Kim Date: 2008-12-30T09:54:59+09:00 Subject: Re: use not equal(!=) operator as a Symbol. Hi, Ryan This is still unavailable way on version 1.8.7. According to previous responses, I think the way to use what I want is just to update ruby's version :). 2008. 12. 30, ¿ÀÀü 9:37, Ryan Davis ÀÛ¼º: > > On Dec 29, 2008, at 00:17 , Jun Young Kim wrote: > >> irb(main):006:0> a.send(:!=, 2) >> SyntaxError: compile error >> (irb):6: syntax error, unexpected tNEQ, expecting tSTRING_CONTENT >> or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END >> a.send(:!=, 2) >> ^ >> from (irb):6 >> from :0 >> >> As you see, ruby can recognize a != as a tNEG(not equals). > > no. you're getting a syntax error because :!= is not a valid symbol, > but :"!=" is. Try that and you'll see that there is no such method. > > >