Class: VagrantPlugins::SoftwareBridge::Config
- Inherits:
-
Object
- Object
- VagrantPlugins::SoftwareBridge::Config
- Defined in:
- lib/vagrant-software-bridge/config.rb
Instance Method Summary collapse
- #add(**options) ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #merge(other) ⇒ Object
- #software_bridges ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 |
# File 'lib/vagrant-software-bridge/config.rb', line 6 def initialize @__software_bridges = [] end |
Instance Method Details
#add(**options) ⇒ Object
10 11 12 |
# File 'lib/vagrant-software-bridge/config.rb', line 10 def add(**) @__software_bridges << .dup end |
#merge(other) ⇒ Object
18 19 20 21 22 |
# File 'lib/vagrant-software-bridge/config.rb', line 18 def merge(other) super.tap do |result| result.instance_variable_set(:@__software_bridges, @__software_bridges + other.software_bridges) end end |
#software_bridges ⇒ Object
14 15 16 |
# File 'lib/vagrant-software-bridge/config.rb', line 14 def software_bridges @__software_bridges end |