Sha256: 1c70a31d2d2d8e7d9365d671080045d0c8fa25482c8e9c8e976a17ab00c33cd3

Contents?: true

Size: 823 Bytes

Versions: 1

Compression:

Stored size: 823 Bytes

Contents

require "telephone_number/version"

module TelephoneNumber
  autoload :DataImporter, 'telephone_number/data_importer'
  autoload :TestDataGenerator, 'telephone_number/test_data_generator'
  autoload :Parser, 'telephone_number/parser'
  autoload :Number, 'telephone_number/number'
  autoload :Formatter, 'telephone_number/formatter'
  autoload :PhoneData, 'telephone_number/phone_data'
  autoload :ClassMethods, 'telephone_number/class_methods'

  extend ClassMethods

  # allows users to override the default data
  @@override_file = nil

  def self.override_file=(file_name)
    @@override_file = file_name
  end

  def self.override_file
    @@override_file
  end

  # generates binary file from xml that user gives us
  def self.generate_override_file(file)
    DataImporter.new(file).import!(override: true)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
telephone_number-0.2.0 lib/telephone_number.rb