class ISO3166::YMLData

Public Class Methods

find(code) click to toggle source
# File lib/iso3166/yml_data.rb, line 21
def find(code)
  reload!
  @@data[code.to_s]
end
reload!() click to toggle source
# File lib/iso3166/yml_data.rb, line 13
def reload!
  return if @@data

  @@semaphore.synchronize do
    @@data = YAML.load_file(ISO3166::Countries.yml_data_path)
  end
end
reset!() click to toggle source
# File lib/iso3166/yml_data.rb, line 9
def reset!
  @@data = nil
end