Class: Base32::Configuration
- Inherits:
-
Object
- Object
- Base32::Configuration
- 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
-
#format ⇒ Object
Returns the value of attribute format.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#format ⇒ Object
Returns the value of attribute format.
10 11 12 |
# File 'lib/base32-alphabets/base32.rb', line 10 def format @format end |