Class: Base32::Variant::Crockford

Inherits:
Base32::Variant show all
Defined in:
lib/base32/variant/crockford.rb

Instance Method Summary collapse

Methods inherited from Base32::Variant

[], shortname, #unwrap, #wrap

Instance Method Details

#alphabetObject



3
4
5
# File 'lib/base32/variant/crockford.rb', line 3

def alphabet
  '0123456789ABCDEFGHJKMNPQRSTVWXYZ'
end

#clean(ascstr) ⇒ Object



7
8
9
# File 'lib/base32/variant/crockford.rb', line 7

def clean(ascstr)
  super(ascstr.tr('OIL', '011'))
end