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.
29 30 31 32 |
# File 'lib/configuration.rb', line 29 def initialize(key) @key = key super("Keys must not be empty nor contain '.'.") end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
28 29 30 |
# File 'lib/configuration.rb', line 28 def key @key end |