Hi, all
I have tested comparison test by using object concept.
I mean this one
a = 1
a.send(’==’, 1)
=> true
a.send(’>’, 0)
==>true
a.send(’<’, -1)
==> false
With this concept, however, I cannot test inequlity test(’!=’).
Whenever I try to this test, I met the following error.
irb(main):001:0> a = 1
=> 1
irb(main):002:0> a.send(’!=’, 0)
NoMethodError: undefined method !=' for 1:Fixnum from (irb):2:in
send’
from (irb):2
from :0
irb(main):003:0>
Any idea for this?