Class: VagrantWizard::Loader
- Inherits:
-
Object
- Object
- VagrantWizard::Loader
- Defined in:
- lib/vagrant-wizard/loader.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(configPath) ⇒ Loader
constructor
A new instance of Loader.
Constructor Details
#initialize(configPath) ⇒ Loader
Returns a new instance of Loader.
6 7 8 9 10 11 |
# File 'lib/vagrant-wizard/loader.rb', line 6 def initialize(configPath) @data = nil if (File.exist?(configPath)) @data = YAML.load_file(configPath) end end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/vagrant-wizard/loader.rb', line 4 def data @data end |