Class: VagrantWizard::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-wizard/loader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



4
5
6
# File 'lib/vagrant-wizard/loader.rb', line 4

def data
  @data
end