Class: BRDocuments::CNPJ
- Inherits:
-
DigitChecksum::BaseDocument
- Object
- DigitChecksum::BaseDocument
- BRDocuments::CNPJ
- Defined in:
- lib/br_documents/documents/cnpj.rb
Instance Method Summary collapse
Instance Method Details
#valid? ⇒ Boolean
20 21 22 23 24 25 |
# File 'lib/br_documents/documents/cnpj.rb', line 20 def valid? # This avoid numbers like: "00.000.000/0000-00" being calculate as valid return false if normalize.uniq.size == 1 super end |