Sha256: feac1bc320fd7872a54ff58f0e3913cfbf37c3afcdc11e6e33be303487c23070

Contents?: true

Size: 197 Bytes

Versions: 29

Compression:

Stored size: 197 Bytes

Contents

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

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
br_danfe-1.2.2 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-1.2.1 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-1.2.0 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-1.1.0 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-1.0.0 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-0.20.0 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-0.19.0 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-0.18.0 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-0.17.8 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-0.17.7 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-0.17.6 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-0.17.5 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-0.17.4 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-0.17.3 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-0.17.2 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-0.17.1 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-0.17.0 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-0.16.0 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-0.15.1 lib/br_danfe/danfe_lib/nfe_lib/plate.rb
br_danfe-0.15.0 lib/br_danfe/danfe_lib/nfe_lib/plate.rb