Sha256: 01b1267f68f9f407f9457c881cd1588d63636d0cd4450a5b8f8ff4d20e1e1406
Contents?: true
Size: 704 Bytes
Versions: 1
Compression:
Stored size: 704 Bytes
Contents
## # = Phone Number \Validator Parent Class # This class is the master/parent class to all of the validation functionality class PhoneNumberValidator class << self ## # == Validate any United States phone number! # <b>Example:</b> # PhoneNumberValidator.validate_phone_number('+1 (949) 355-6244 ext. 198842') # <b>Output:</b> # => '+1 (949) 355-6244 ext. 198842' is a valid phone number.' # => true # <b>Arguments:</b> # phone_number: (String) def validate_phone_number(phone_number) validator = Validator.new(phone_number) validator.validate_phone_number end end end require 'phone_number_validator/validator'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phone_number_validator-0.2.9 | lib/phone_number_validator.rb |