Module: BrNfe::Helper
- Extended by:
- ActiveSupport::Autoload
- Included in:
- BrNfe
- Defined in:
- lib/br_nfe.rb,
lib/br_nfe/helper/cpf_cnpj.rb,
lib/br_nfe/helper/have_rps.rb,
lib/br_nfe/helper/have_address.rb,
lib/br_nfe/helper/have_emitente.rb,
lib/br_nfe/helper/have_destinatario.rb,
lib/br_nfe/helper/have_intermediario.rb,
lib/br_nfe/helper/have_condicao_pagamento.rb
Defined Under Namespace
Modules: HaveAddress, HaveCondicaoPagamento, HaveDestinatario, HaveEmitente, HaveIntermediario, HaveRps Classes: CpfCnpj
Class Method Summary collapse
Class Method Details
.only_number(value) ⇒ Object
92 93 94 |
# File 'lib/br_nfe.rb', line 92 def self.only_number(value) "#{value}".gsub(/[^0-9]/,'') end |