Sha256: 662ae1463005e6e4ee99e3367588485d0a711fd8c7a4057a995f2815e6eeff76

Contents?: true

Size: 428 Bytes

Versions: 6

Compression:

Stored size: 428 Bytes

Contents

require "geolookup/version"
require "geolookup/usa/county"
require "geolookup/usa/state"
require "geolookup/country"

module Geolookup
  ###################################################################
  # self.load_file
  #
  # Loads a given .yml file that contains a hash and returns the hash
  #
  def self.load_hash_from_file(file_name)
    YAML.load_file(File.join(File.dirname(__FILE__), "data/", file_name))
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
geolookup-0.5.10 lib/geolookup.rb
geolookup-0.5.9 lib/geolookup.rb
geolookup-0.5.8 lib/geolookup.rb
geolookup-0.5.7 lib/geolookup.rb
geolookup-0.5.6 lib/geolookup.rb
geolookup-0.5.5 lib/geolookup.rb