class SocialSecurityNumber::Pk
SocialSecurityNumber::Pk
validates Pakistan computerised national identity card number (CNIC) en.wikipedia.org/wiki/National_identification_number#Pakistan www.geo.tv/latest/157233-secret-behind-every-digit-of-the-cnic-number
Constants
- REGEXP
Public Instance Methods
validate()
click to toggle source
# File lib/social_security_number/country/pk.rb, line 6 def validate @error = unless check_by_regexp(REGEXP) 'bad number format' end end