class Base58::Configuration

Constants

MAPPING

Attributes

format[R]

Public Class Methods

new() click to toggle source
# File lib/base58-alphabets/base58.rb, line 12
def initialize
  @format = Bitcoin
end

Public Instance Methods

format=(value) click to toggle source
# File lib/base58-alphabets/base58.rb, line 16
def format=(value)
  if value.is_a?( Symbol )
    @format = MAPPING[ value ]
  else  ## assume class
    @format = value
  end
end