class Exception7
Perform the check as specified, except if g = 9 zeroise weighting positions u-b.
Public Instance Methods
replace_weight(test_digits)
click to toggle source
# File lib/uk_account_validator/exceptions/exception_7.rb, line 4 def replace_weight(test_digits) return modulus_weight unless test_digits[NUMBER_INDEX[:g]] == 9 return zero_u_b end