Sha256: aca0194c8e79f7b3652935fd275a7ca1c62a8d8c407ae2394410185eefac9f8e

Contents?: true

Size: 119 Bytes

Versions: 9

Compression:

Stored size: 119 Bytes

Contents

module BrDanfe
  class Plate
    def self.format(plate)
      plate.sub(/(\w{2})(\d{4})/, "\\1-\\2")
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
br_danfe-0.0.9 lib/br_danfe/plate.rb
br_danfe-0.0.8 lib/br_danfe/plate.rb
br_danfe-0.0.7 lib/br_danfe/plate.rb
br_danfe-0.0.6 lib/br_danfe/plate.rb
br_danfe-0.0.5 lib/br_danfe/plate.rb
br_danfe-0.0.4 lib/br_danfe/plate.rb
br_danfe-0.0.3 lib/br_danfe/plate.rb
br_danfe-0.0.2 lib/br_danfe/plate.rb
br_danfe-0.0.1 lib/br_danfe/plate.rb