Class: VagrantPlugins::IniConfig::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-iniconfig/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



10
11
12
13
14
15
# File 'lib/vagrant-iniconfig/config.rb', line 10

def initialize
	@file = UNSET_VALUE
	@config = UNSET_VALUE

	@_finalized = false
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



8
9
10
# File 'lib/vagrant-iniconfig/config.rb', line 8

def config
  @config
end

#fileObject

Returns the value of attribute file.



7
8
9
# File 'lib/vagrant-iniconfig/config.rb', line 7

def file
  @file
end

Instance Method Details

#finalize!Object



22
23
24
25
26
27
# File 'lib/vagrant-iniconfig/config.rb', line 22

def finalize!
	@file = nil if @file == UNSET_VALUE
	@config = nil if @config == UNSET_VALUE

	@_finalized = true
end