Why does "A".send('!='.to_sym, "B") raises a NoMethodError in Ruby 1.8.7 while "A" != "B"does not – and how would the correct syntax for Object.send look like?
Why does A.send(‘!=’.to_sym, B) raises a NoMethodError in Ruby 1.8.7 while A != B
Share
!=isn’t a method in ruby 1.8 It’s hardwired to be the negation of calling ==