From: Victor Shepelev Date: 2006-05-26T14:32:19+09:00 Subject: Re: Method '!=' From: Justin Collins [mailto:collinsj@seattleu.edu] Sent: Friday, May 26, 2006 8:28 AM > Victor Shepelev wrote: > > Hello all. > > > > I've tried something like this: > > > > 'a'.send('==', 'b') #it works, returns true > > > > But > > > > 'a'.send('!=', 'b') > > > > said to me: > > > > tricks.rb:11:in `Kernel#send': undefined method `!=' for "a":String > > (NoMethodError) > > > > Where am I wrong? > > > > V. > > > > > > > > a != b gets turned into !(a == b) or something like that. > > So != isn't really a method - it's just syntax. It's intuitively understandable; but I feel myself very uncomfortable when I can *call*, but can't *send*. OK, would remember this one. > -Justin V.