Class: Dacs::DefaultSource
- Inherits:
-
Object
- Object
- Dacs::DefaultSource
- Defined in:
- lib/dacs/default_source.rb
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(defaults) ⇒ DefaultSource
constructor
A new instance of DefaultSource.
- #to_s ⇒ Object
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
#each ⇒ Object
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_s ⇒ Object
7 8 9 |
# File 'lib/dacs/default_source.rb', line 7 def to_s "defaults" end |