module CPF::Validator
Overview
Provides CPF number validation method
Extended Modules
Defined in:
cpf/validator.crInstance Method Summary
-
#valid?(value : String) : Bool
Returns
true
if the given value is a valid CPF number, otherwise returns false
Instance Method Detail
def valid?(value : String) : Bool
#
Returns true
if the given value is a valid CPF number, otherwise
returns false
CPF::Validator.valid?("11111111111") # => false
CPF::Validator.valid?("64006183097") # => true