Method: Fifa::CountryReader#split_geo

Defined in:
lib/fifa/country_reader.rb

#split_geo(str) ⇒ Object

todo/check: rename to parse_geo(s) - why? why not?



129
130
131
132
133
134
# File 'lib/fifa/country_reader.rb', line 129

def split_geo( str )   ## todo/check: rename to parse_geo(s) - why? why not?
  ## split into geo tree
  geos = str.split( /[<>‹›]/ )          ## note: allow > < or › ‹ for now
  geos = geos.map { |geo| geo.strip }   ## remove all whitespaces
  geos
end