Sha256: bffa5ba53ef2cca00c06aa02eebca2a3d9828ec9192fecb15893fb5bae89915b
Contents?: true
Size: 338 Bytes
Versions: 6
Compression:
Stored size: 338 Bytes
Contents
require_relative 'pattern1' module BrDocuments module IE class GO < Pattern1 def initialize(number) super @mask = /^(\d{2}\.\d{3}\.\d{3}\-\d{1})$|^(\d{9})$/ end private def format_ie(number) number.sub(/(\d{2})(\d{3})(\d{3})(\d{1})/, '\\1.\\2.\\3-\\4') end end end end
Version data entries
6 entries across 6 versions & 1 rubygems