lib/validates_modulus/mod11.rb
# Calclulates the modulus 11 control digit.
Calclulates the modulus 11 control digit.
Calclulates the modulus 11 control digit .
def check_digit
        remainder = 11 - (checksum % 11)
        case remainder
        when 10 then nil
        when 11 then 0
        else remainder
        end
      end
def check_digit remainder = 11 - ( checksum % 11 ) case remainder when 10 then nil when 11 then 0 else remainder end end
Calclulates the modulus 11 control digit.
Calclulates the modulus 11 control digit .