Module: Geolookup

Defined in:
lib/geolookup.rb,
lib/geolookup/country.rb,
lib/geolookup/version.rb,
lib/geolookup/usa/state.rb,
lib/geolookup/usa/county.rb

Defined Under Namespace

Modules: Country, USA

Constant Summary collapse

VERSION =
"0.5.10"

Class Method Summary collapse

Class Method Details

.load_hash_from_file(file_name) ⇒ Object

self.load_file

Loads a given .yml file that contains a hash and returns the hash



12
13
14
# File 'lib/geolookup.rb', line 12

def self.load_hash_from_file(file_name)
  YAML.load_file(File.join(File.dirname(__FILE__), "data/", file_name))
end