lib/configurator/configuration.rb in configurator2-0.1.2 vs lib/configurator/configuration.rb in configurator2-0.1.3

- old
+ new

@@ -32,10 +32,11 @@ end def set(name, value, &block) name = name.to_sym if block_given? - self[name] = block + self[name] ||= defaults[name] || self.class.new + self[name].instance_eval(&block) elsif value.is_a?(Hash) self[name] = defaults[name] || self.class.new value.each do |key, value_two| self[name].send("#{key}=", value_two) end