module CPF::Validator

Overview

Provides CPF number validation method

Extended Modules

Defined in:

cpf/validator.cr

Instance Method Summary

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

[View source]