lib/confstruct/configuration.rb in confstruct-0.2.0 vs lib/confstruct/configuration.rb in confstruct-0.2.1

- old
+ new

@@ -4,10 +4,10 @@ class Configuration < HashWithStructAccess def initialize hash=@@hash_class.new, &block super({}) - @default_values = hash.is_a?(HashWithStructAccess) ? hash : HashWithStructAccess.new(hash) + @default_values = hash.is_a?(HashWithStructAccess) ? hash : HashWithStructAccess.from_hash(hash) eval_or_yield @default_values, &block reset_defaults! end def after_config! obj \ No newline at end of file