lib/brid/ids/pis.rb in brid-0.1.3 vs lib/brid/ids/pis.rb in brid-0.2.0
- old
+ new
@@ -18,15 +18,11 @@
er = /^(.{3})(.{5})(.{2})(.{1})/
"#{@number.gsub(er, '\1.\2.\3-\4')}"
end
private
- def mod11 number
- Mod11.new(number, :base => 2..9)
- end
-
def valid_number
- mod11(sequential) * 1
+ sequential.mod11(check_digits_length, :base => 2..9)
end
end
end
PIS = Brid::PIS if not defined? PIS and not defined? Pis