Sha256: 8255e1fe9dec7e7ad2a28a3ea4bcdaaf23fb2f274d78f3e581bf1013706858e7
Contents?: true
Size: 269 Bytes
Versions: 14
Compression:
Stored size: 269 Bytes
Contents
# frozen_string_literal: true class Valvat module Checksum class PL < Base def check_digit weight = [6, 5, 7, 2, 3, 4, 5, 6, 7] figures.map do |fig| fig * weight.shift end.inject(:+).modulo(11) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems