Sha256: 3e0045c38bb83cb9e6ec1ee18908d2084ef73f87030dfde257c83153be7a7ad4
Contents?: true
Size: 517 Bytes
Versions: 1
Compression:
Stored size: 517 Bytes
Contents
module Phonejack class NumberFormat attr_reader :pattern, :leading_digits, :format, :national_prefix_formatting_rule, :intl_format def initialize(data_hash) @pattern = Regexp.new(data_hash[:pattern]) if data_hash[:pattern] @leading_digits = Regexp.new(data_hash[:leading_digits]) if data_hash[:leading_digits] @format = data_hash[:format] @intl_format = data_hash[:intl_format] @national_prefix_formatting_rule = data_hash[:national_prefix_formatting_rule] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phonejack-1.2.0 | lib/phonejack/number_format.rb |