module UkAccountValidator
Constants
- VERSION
Public Class Methods
modulus_weights_table()
click to toggle source
# File lib/uk_account_validator.rb, line 28 def self.modulus_weights_table @modulus_weights_table ||= read_modulus_weights_table end
sort_code_substitution()
click to toggle source
# File lib/uk_account_validator.rb, line 32 def self.sort_code_substitution @sort_code_substitution ||= read_sort_code_substitution end
Private Class Methods
modulus_weights_table_file()
click to toggle source
# File lib/uk_account_validator.rb, line 38 def self.modulus_weights_table_file File.join(File.dirname(__FILE__), '../data/valacdos.txt') end
read_modulus_weights_table()
click to toggle source
# File lib/uk_account_validator.rb, line 42 def self.read_modulus_weights_table ModulusWeightsTable.new(modulus_weights_table_file) end
read_sort_code_substitution()
click to toggle source
# File lib/uk_account_validator.rb, line 50 def self.read_sort_code_substitution @substitutions ||= Hash[ File.readlines(UkAccountValidator.sort_code_substitution_file).map do |line| line.split(' ') end ] end
sort_code_substitution_file()
click to toggle source
# File lib/uk_account_validator.rb, line 46 def self.sort_code_substitution_file File.join(File.dirname(__FILE__), '../data/scsubtab.txt') end