Exception: BasicConfig::NotFound

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/basic_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject (readonly)

Returns the value of attribute key.



5
6
7
# File 'lib/basic_config.rb', line 5

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/basic_config.rb', line 5

def name
  @name
end

#scopeObject (readonly)

Returns the value of attribute scope.



5
6
7
# File 'lib/basic_config.rb', line 5

def scope
  @scope
end