Sha256: e47a5b7aa83389213d3bf27dae3206824eafa56ffe73559029b6513245379fb0
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
require "i18n" require "ibandit/version" require "ibandit/errors" require "ibandit/constants" require "ibandit/iban" require "ibandit/german_details_converter" require "ibandit/sweden/local_details_converter" require "ibandit/sweden/validator" require "ibandit/sweden/bank_lookup" require "ibandit/iban_splitter" require "ibandit/iban_assembler" require "ibandit/pseudo_iban_assembler" require "ibandit/pseudo_iban_splitter" require "ibandit/local_details_cleaner" require "ibandit/check_digit" I18n.load_path += Dir[File.expand_path("../config/locales/*.{rb,yml}", __dir__)] module Ibandit class << self attr_accessor :bic_finder, :modulus_checker def find_bic(country_code, national_id) raise NotImplementedError, "BIC finder is not defined" unless @bic_finder @bic_finder.call(country_code, national_id) end def structures @structures ||= YAML.load_file( File.expand_path("../data/structures.yml", __dir__), ) end def translate(key, options = {}) I18n.translate(key, { scope: [:ibandit] }.merge(options)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ibandit-0.11.22 | lib/ibandit.rb |
ibandit-0.11.20 | lib/ibandit.rb |