Method: RWebUnit::Driver#symbol_to_sequence

Defined in:
lib/rwebunit/driver.rb

#symbol_to_sequence(symb) ⇒ Object

Convert :first to 1, :second to 2, and so on…



715
716
717
718
719
720
721
722
723
724
725
726
727
728
# File 'lib/rwebunit/driver.rb', line 715

def symbol_to_sequence(symb)
  value = { :zero => 0,
    :first => 1,
    :second => 2,
    :third => 3,
    :fourth => 4,
    :fifth => 5,
    :sixth => 6,
    :seventh => 7,
    :eighth => 8,
    :ninth => 9,
  :tenth => 10 }[symb]
  return value || symb.to_i
end