class WorldDb::CountryReader
Public Instance Methods
read()
click to toggle source
# File lib/worlddb/readers/country.rb, line 7 def read reader = ValuesReader.from_string( @text, @more_attribs ) reader.each_line do |attribs, values| opts = { skip_tags: skip_tags? } Country.create_or_update_from_attribs( attribs, values, opts ) end end