Method: Confection::Config#copy

Defined in:
lib/confection/config.rb

#copy(alt = {}) ⇒ Config

Copy the configuration with alterations.



153
154
155
156
157
158
159
# File 'lib/confection/config.rb', line 153

def copy(alt={})
  copy = dup
  alt.each do |k,v|
    copy.__send__("#{k}=", v)
  end
  copy
end