mbklein/confstruct — Issue #5: Configuration.new doesn't work with nested hashes
Author: ineu
Created: 2012-01-22 14:22:15+00:00
State: open

I'm trying to use Confstruct like

yaml = YAML.load_file 'application.yml'
config = Confstruct::Configuration.new yaml

When yaml contains nested hashes, it's not possible to reach inner members. But if i set inner member by hands, it works:
``` ruby
irb(main):001:0> require 'confstruct'
=> true
irb(main):002:0> x = {'a' => {'b' => 'c'}}
=> {"a"=>{"b"=>"c"}}
irb(main):003:0> config = Confstruct::Configuration.new x
=> {:a=>{"b"=>nil}}
irb(main):004:0> config[:a]['d'] = 'e'
=> "e"
irb(main):005:0> config
=> {:a=>{"b"=>nil, :d=>"e"}}
```