Module: RVM::Environment::ConfigMixin

Included in:
RVM::Environment, RVM::Environment
Defined in:
lib/rvm/environment/configuration.rb

Overview

Mixin for a set of configs.

Instance Method Summary collapse

Instance Method Details

#clear_config!Object

Reset this local config to be empty.



30
31
32
# File 'lib/rvm/environment/configuration.rb', line 30

def clear_config!
  @config = {}
end

#configObject

Returns the current config for this scope



20
21
22
# File 'lib/rvm/environment/configuration.rb', line 20

def config
  @config ||= {}
end

#merge_config!(r) ⇒ Object

Merge a set of items into the config.



25
26
27
# File 'lib/rvm/environment/configuration.rb', line 25

def merge_config!(r)
  r.each_pair { |k, v| config[k.to_s] = v }
end