module Iban
Defined in:
iban.criban_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
-
.display(iban : String) : String
format in the standard way:
- .remainder(iban : String) : Int32
- .validate(iban : String) : Bool
- .validate_with_feedback(iban : String) : String
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"