Class: Dacs::DefaultSource

Inherits:
Object
  • Object
show all
Defined in:
lib/dacs/default_source.rb

Instance Method Summary collapse

Constructor Details

#initialize(defaults) ⇒ DefaultSource

Returns a new instance of DefaultSource.



3
4
5
# File 'lib/dacs/default_source.rb', line 3

def initialize(defaults)
  @defaults = defaults
end

Instance Method Details

#eachObject



11
12
13
14
15
# File 'lib/dacs/default_source.rb', line 11

def each
  @defaults.each do |key, value|
    yield ConfiguredValue.new(self, key.to_s, value)
  end
end

#to_sObject



7
8
9
# File 'lib/dacs/default_source.rb', line 7

def to_s
  "defaults"
end