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
<ibc / aliax.net>