Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/iban-check/ext/string.rb

Instance Method Summary collapse

Instance Method Details

#switchObject



2
3
4
5
6
7
8
# File 'lib/iban-check/ext/string.rb', line 2

def switch
  if (65..(65+35)).include? self[0].ord
    (self[0].ord) - 55
  else
    self
  end
end