Class: VagrantPlugins::IniConfig::Config
- Inherits:
-
Object
- Object
- VagrantPlugins::IniConfig::Config
- Defined in:
- lib/vagrant-iniconfig/config.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#file ⇒ Object
Returns the value of attribute file.
Instance Method Summary collapse
- #finalize! ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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
#config ⇒ Object
Returns the value of attribute config.
8 9 10 |
# File 'lib/vagrant-iniconfig/config.rb', line 8 def config @config end |
#file ⇒ Object
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 |