Sha256: 81fd231f8865e594bfdbe207fbef06e3223cabb6bd958829bade65d3a2adde1e

Contents?: true

Size: 293 Bytes

Versions: 2

Compression:

Stored size: 293 Bytes

Contents

module TelephoneNumber
  module ClassMethods
    def parse(number, country)
      TelephoneNumber::Number.new(number, country)
    end

    def valid?(number, country, keys = [])
      parse(number, country).valid?(keys)
    end

    def invalid?(*args)
      !valid?(*args)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
telephone_number-0.3.0 lib/telephone_number/class_methods.rb
telephone_number-0.2.0 lib/telephone_number/class_methods.rb