Exception: Ppp::Generator::NotHexKey
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Ppp::Generator::NotHexKey
- Defined in:
- lib/ppp/generator.rb
Constant Summary collapse
- @@error =
'Expected a 64 digit hex-string, but got "%s". Use Ppp.key_from_string() to generate a useable hex-string from an arbitrary string.'
Instance Method Summary collapse
-
#initialize(key) ⇒ NotHexKey
constructor
A new instance of NotHexKey.
- #to_s ⇒ Object
Constructor Details
#initialize(key) ⇒ NotHexKey
Returns a new instance of NotHexKey.
65 |
# File 'lib/ppp/generator.rb', line 65 def initialize( key ) @key = key end |
Instance Method Details
#to_s ⇒ Object
67 |
# File 'lib/ppp/generator.rb', line 67 def to_s() @@error % @key end |