Skip to content

igponce/simpleiban-gem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simpleiban-gem

Simple IBAN checker

Usage

Load the lib:

require 'simpleiban'

Create a new IBAN to check:

a = IBAN.new 'GB82 West 12345 69876 5432' # from wikipedia

Is it valid (according to the rules)?

a.valid?

And pretty_print it (as a string):

str = a.to_s
# str = "GB82 WEST 1234 5698 7654 32"

Releases

No releases published

Packages

No packages published

Languages