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.



43
44
45
46
# File 'lib/configuration.rb', line 43

def initialize(key)
	@key = key
	super("Keys must not be empty")
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



42
43
44
# File 'lib/configuration.rb', line 42

def key
  @key
end