Class: VagrantTun::Config
- Inherits:
-
Object
- Object
- VagrantTun::Config
- Defined in:
- lib/vagrant-tun/config.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
Instance Method Summary collapse
- #finalize! ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
7 8 9 10 11 12 |
# File 'lib/vagrant-tun/config.rb', line 7 def initialize super # UNSET_VALUE so that Vagrant can properly automatically merge multiple configurations. # https://www.vagrantup.com/docs/plugins/configuration.html @enabled = UNSET_VALUE end |
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
5 6 7 |
# File 'lib/vagrant-tun/config.rb', line 5 def enabled @enabled end |
Instance Method Details
#finalize! ⇒ Object
14 15 16 |
# File 'lib/vagrant-tun/config.rb', line 14 def finalize! @enabled = (@enabled != UNSET_VALUE) && (@enabled != false) end |