Class: Konfig::Sources::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/konfig/sources/abstract.rb

Direct Known Subclasses

Directory, Environment, YAML

Instance Method Summary collapse

Constructor Details

#initializeAbstract

Returns a new instance of Abstract.



7
8
# File 'lib/konfig/sources/abstract.rb', line 7

def initialize
end

Instance Method Details

#get(path, attribute: nil) ⇒ Object

The get method will return the give value for the given path. The path will contain the full path to the value, including the groups which lead up to it.

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/konfig/sources/abstract.rb', line 13

def get(path, attribute: nil)
  raise NotImplementedError
end