class
   CNPJ::Validator
 
  - CNPJ::Validator
- Reference
- Object
Overview
Provides CNPJ identifier validation method
Defined in:
cpf_cnpj/cnpj/validator.crClass Method Summary
- 
        .valid?(value : String) : Bool
        
          Returns trueif the given value is a valid CNPJ value, otherwise returns false
Class Method Detail
        
        def self.valid?(value : String) : Bool
        #
      
      
        Returns true if the given value is a valid CNPJ value, otherwise
returns false
CNPJ::Validator.valid?("11111111111111")     # => false
CNPJ::Validator.valid?("24485147000187")     # => true
CNPJ::Validator.valid?("24.485.147/0001-87") # => true