Exception: Multibases::NoEngine

Inherits:
Error
  • Object
show all
Defined in:
lib/multibases/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(encoding) ⇒ NoEngine

Returns a new instance of NoEngine.



5
6
7
8
9
10
11
# File 'lib/multibases/error.rb', line 5

def initialize(encoding)
  super(
    "There is no engine registered to encode or decode #{encoding}.\n" \
      'Either pass it as an argument, or use Multibases.implement to ' \
      'register it globally.'
  )
end