Method: Roo::Utils#split_coord
- Defined in:
- lib/roo/utils.rb
#split_coord(s) ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/roo/utils.rb', line 20 def split_coord(s) if s =~ /([a-zA-Z]+)([0-9]+)/ letter = Regexp.last_match[1] number = Regexp.last_match[2].to_i else fail ArgumentError end [letter, number] end |