Exception: Configuration::InvalidKey

Inherits:
StandardError
  • Object
show all
Defined in:
lib/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject (readonly)

Returns the value of attribute key.



28
29
30
# File 'lib/configuration.rb', line 28

def key
  @key
end