Class: Souschef::Configure::Yaml
- Inherits:
-
Object
- Object
- Souschef::Configure::Yaml
- Defined in:
- lib/souschef/configure/file.rb
Overview
Create Configuration file
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#opts ⇒ Object
Returns the value of attribute opts.
Instance Method Summary collapse
-
#initialize(opts) ⇒ Yaml
constructor
A new instance of Yaml.
Constructor Details
#initialize(opts) ⇒ Yaml
Returns a new instance of Yaml.
7 8 9 10 11 12 13 |
# File 'lib/souschef/configure/file.rb', line 7 def initialize(opts) @opts = opts @souschef = File.('~/.souschef.yml') read_configuration add_values write_configuration end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
5 6 7 |
# File 'lib/souschef/configure/file.rb', line 5 def data @data end |
#opts ⇒ Object
Returns the value of attribute opts.
5 6 7 |
# File 'lib/souschef/configure/file.rb', line 5 def opts @opts end |