Sha256: b199816c8eeb73d5b94be8628c6ae18429225fb8c015ac75256a909f69c0c1e7
Contents?: true
Size: 348 Bytes
Versions: 18
Compression:
Stored size: 348 Bytes
Contents
require_relative "pattern1" module BrDocuments module IE class RS < Pattern1 def initialize(number) super @mask = /^(\d{3}\/\d{7})$|^(\d{10})$/ @weight = [2, 9, 8, 7, 6, 5, 4, 3, 2] end private def format_ie(number) number.sub(/(\d{3})(\d{7})/, "\\1/\\2") end end end end
Version data entries
18 entries across 18 versions & 1 rubygems