Sha256: e249c921ee52aab3a60c6588cd0da42dd7f0cdad4880505e8c9598f78660c568

Contents?: true

Size: 281 Bytes

Versions: 1

Compression:

Stored size: 281 Bytes

Contents

require 'yaml'

module Dialable
  module AreaCodes

    # Valid area codes per nanpa.com
    data_path = Gem.datadir('dialable')
    data_path ||= File.join(File.dirname(__FILE__), '..', 'data', 'dialable')

    NANP = YAML.load_file(File.join(data_path, 'nanpa.yaml'))

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dialable-1.0.0 lib/dialable/area_codes.rb