Class: VagrantPlugins::SoftwareBridge::Config

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

Instance Method Summary collapse

Constructor Details

#initializeConfig

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(**options)
  @__software_bridges << options.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_bridgesObject



14
15
16
# File 'lib/vagrant-software-bridge/config.rb', line 14

def software_bridges
  @__software_bridges
end