Sha256: f9410603fb7000db1704e3f186186134a48c962e9b16e9e8c1c53148562bd2ef
Contents?: true
Size: 542 Bytes
Versions: 20
Compression:
Stored size: 542 Bytes
Contents
class PhoneNumberValidator class << self # Validate any United States phone number! # # Example: # >> PhoneNumberValidator.validate_phone_number('+1 (949) 355-6244 ext. 198842') # => '+1 (949) 355-6244 ext. 198842' is a valid phone number.' # => true # # Arguments: # phone_no: (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
20 entries across 20 versions & 1 rubygems