module RVM::Environment::ConfigMixin
Mixin for a set of configs.
Public Instance Methods
clear_config!()
click to toggle source
Reset this local config to be empty.
# File lib/rvm/environment/configuration.rb, line 30 def clear_config! @config = {} end
config()
click to toggle source
Returns the current config for this scope
# File lib/rvm/environment/configuration.rb, line 20 def config @config ||= {} end
merge_config!(r)
click to toggle source
Merge a set of items into the config.
# File lib/rvm/environment/configuration.rb, line 25 def merge_config!(r) r.each_pair { |k, v| config[k.to_s] = v } end