Exception: BasicConfig::NotFound
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- BasicConfig::NotFound
- Defined in:
- lib/basic_config.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(name, scope, key) ⇒ NotFound
constructor
A new instance of NotFound.
Constructor Details
#initialize(name, scope, key) ⇒ NotFound
Returns a new instance of NotFound.
7 8 9 10 11 12 13 |
# File 'lib/basic_config.rb', line 7 def initialize(name, scope, key) @name = name @scope = scope @key = key super("Configuration key '#{scope}#{key}' is missing in #{name}") end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
5 6 7 |
# File 'lib/basic_config.rb', line 5 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/basic_config.rb', line 5 def name @name end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
5 6 7 |
# File 'lib/basic_config.rb', line 5 def scope @scope end |