Class: Contrast::Config::LocalSourceValue

Inherits:
Object
  • Object
show all
Defined in:
lib/contrast/config/configuration_files.rb

Overview

This class will hold all the info about the read file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path = '', values = {}) ⇒ LocalSourceValue

Returns a new instance of LocalSourceValue.

Parameters:

  • path (String) (defaults to: '')
  • values (Hash) (defaults to: {})


39
40
41
42
# File 'lib/contrast/config/configuration_files.rb', line 39

def initialize path = '', values = {}
  @path = path unless Contrast::Utils::DuckUtils.empty_duck?(path)
  @values = values
end

Instance Attribute Details

#pathString (readonly)

Returns:



33
34
35
# File 'lib/contrast/config/configuration_files.rb', line 33

def path
  @path
end

#valuesHash (readonly)

Returns:



35
36
37
# File 'lib/contrast/config/configuration_files.rb', line 35

def values
  @values
end