module Iban

Defined in:

iban.cr
iban_format.cr

Constant Summary

DIFF = 55
MAX_LENGTH = 34

The maximum length of an IBAN is 34 characters, constitued of:

ISO Country code: 2a (alphabetic) Checksum: 2n (numeric) BBAN (Basic Bank Account Number): up to 30c (alphanumeric), country-specific

MIN_LENGTH = 15

Norway has the shortest IBAN with 15 characters

Class Method Summary

Class Method Detail

def self.display(iban : String) : String #

format in the standard way:

"groups of four characters separated by spaces, the last group being of variable length"


[View source]
def self.remainder(iban : String) : Int32 #

[View source]
def self.validate(iban : String) : Bool #

[View source]
def self.validate_with_feedback(iban : String) : String #

[View source]