On Dec 29, 2008, at 04:16 , David A. Black wrote:

> Hi --
>
> On Mon, 29 Dec 2008, Ryan Davis wrote:
>
>>
>> On Dec 28, 2008, at 22:58 , Jun Young Kim wrote:
>>
>>> irb(main):008:0> a.send('!=', 2)
>>> NoMethodError: undefined method `!=' for 1:Fixnum
>>> 	from (irb):8:in `send'
>>> 	from (irb):8
>>> 	from :0
>>
>> there is no '!=' method, there is only '=='. you should send '=='  
>> and not/! the result:
>>
>> ! a.send('==', 2)
>
> In 1.9 != becomes a method:
>
> $ ruby19 -ve 'p 1.send("!=", 2)'
> ruby 1.9.1 (2008-12-14 revision 20738) [i386-darwin9.5.0]
> true

that's a bug, == and != shouldn't be able to disagree:

 >> class X; def == o; :great; end; def != o; :horrible; end; end
=> nil
 >> x = X.new
=> #<X:0x419948>
 >> x == 0
=> :great
 >> x != 0
=> :horrible