From: "Iñaki Baz Castillo" Date: 2008-05-08T23:52:35+09:00 Subject: Comparing String with Symbol Hi, losts of Ruby methods allow String or Symbol as parameter, for example: ["AAA","BBB"].send('first') => "AAA" ["AAA","BBB"].send(:first) => "AAA" If I want to accespt String or Symbol, is there an easy wat to allow both without doing something explicit as: if pos == :first || pos == 'first' Maybe using: if pos.to_s == 'first' is the best way? -- Iñaki Baz Castillo