Class: Base32::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/base32-alphabets/base32.rb

Constant Summary collapse

MAPPING =
{
  kai:           Kai,            # starts counting at 1 (one)
  crockford:     Crockford,      # starts counting at 0 (zero)
  hex:           Crockford,      #  note: use hex as an alias - why? why not?
  electrologica: Electrologica,
  num:           Electrologica,  #  note: use num as an alias
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



20
21
22
# File 'lib/base32-alphabets/base32.rb', line 20

def initialize
  @format = Kai
end

Instance Attribute Details

#formatObject

Returns the value of attribute format.



10
11
12
# File 'lib/base32-alphabets/base32.rb', line 10

def format
  @format
end