Sha256: c1bc5b10d554087f9a4ed5d86421374e216b6d8f213bbd7ba20f8e3b69a5de24

Contents?: true

Size: 525 Bytes

Versions: 2

Compression:

Stored size: 525 Bytes

Contents

require 'geolookup/version'
require 'geolookup/usa/county'
require 'geolookup/usa/state'
require 'geolookup/usa/metro'
require 'geolookup/country'
require 'geolookup/usa/areacodes'
require 'geolookup/usa/zipcodes'

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

2 entries across 2 versions & 1 rubygems

Version Path
geolookup-0.6.1 lib/geolookup.rb
geolookup-0.6.0 lib/geolookup.rb