Class: VagrantPlugins::RemoteForward::Config
- Inherits:
-
Object
- Object
- VagrantPlugins::RemoteForward::Config
- Defined in:
- lib/vagrant-remote-forward/config.rb
Defined Under Namespace
Classes: Forward
Instance Attribute Summary collapse
-
#add(port, host, remoteport) ⇒ Object
Returns the value of attribute add.
-
#forwards ⇒ Object
Returns the value of attribute forwards.
Instance Method Summary collapse
- #finalize! ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
8 9 10 11 |
# File 'lib/vagrant-remote-forward/config.rb', line 8 def initialize @forwards = [] # @widgets = UNSET_VALUE end |
Instance Attribute Details
#add(port, host, remoteport) ⇒ Object
Returns the value of attribute add.
6 7 8 |
# File 'lib/vagrant-remote-forward/config.rb', line 6 def add @add end |
#forwards ⇒ Object
Returns the value of attribute forwards.
6 7 8 |
# File 'lib/vagrant-remote-forward/config.rb', line 6 def forwards @forwards end |
Instance Method Details
#finalize! ⇒ Object
17 18 19 |
# File 'lib/vagrant-remote-forward/config.rb', line 17 def finalize! # @widgets = 0 if @widgets == UNSET_VALUE end |