Class: BrDanfe::DanfeLib::NfeLib::Plate

Inherits:
Object
  • Object
show all
Defined in:
lib/br_danfe/danfe_lib/nfe_lib/plate.rb

Class Method Summary collapse

Class Method Details

.format(plate) ⇒ Object



5
6
7
# File 'lib/br_danfe/danfe_lib/nfe_lib/plate.rb', line 5

def self.format(plate)
  plate.delete('-').sub(/([A-Za-z]{3})/, '\\1-')
end