Exception: Configuration::InvalidKey
- Inherits:
-
StandardError
- Object
- StandardError
- Configuration::InvalidKey
- Defined in:
- lib/configuration.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key) ⇒ InvalidKey
constructor
A new instance of InvalidKey.
Constructor Details
#initialize(key) ⇒ InvalidKey
Returns a new instance of InvalidKey.
37 38 39 40 |
# File 'lib/configuration.rb', line 37 def initialize(key) @key = key super("Keys must not be empty") end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
36 37 38 |
# File 'lib/configuration.rb', line 36 def key @key end |