Sha256: 7c327381df80a24de9b1e6b87b614e630edbe4cc6e488d498645e6bbc3a0a487
Contents?: true
Size: 222 Bytes
Versions: 2
Compression:
Stored size: 222 Bytes
Contents
module MagickNumbers class Regon9 < MagickNumbers::Base def initialize(num) super num @mask = [8, 9, 2, 3, 4, 5, 6, 7] @modulo = 11 @regexp = /^\d{9}$/ @length = 9 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
magick_numbers-0.1.4 | lib/magick_numbers/regon9.rb |
magick_numbers-0.1.3 | lib/magick_numbers/regon9.rb |