Am I missing something here? Why not just test for equality?


irb(main):001:0> "foo" == "foo"
=> true
irb(main):002:0> "foo" == "bar"
=> false

-- 
Posted via http://www.ruby-forum.com/.