README.md in config_default-0.2.4 vs README.md in config_default-0.2.5
- old
+ new
@@ -168,10 +168,10 @@
You can use `ConfigDefault::Struct` to achive ability to create config object from Hash objects.
Here an example of creation struct object on the fly:
```ruby
config_on_the_fly = { first: { second: { third: "option" } } }
-config = ConfigDefault::Struct.new(attributes: config_on_the_fly, recursive: true)
+config = ConfigDefault::Struct.new(config_on_the_fly, recursive: true)
config.first.to_hash
# => { "second" => { "third" => "option" } }
config.first.second.third
# => "option"
config.first.lolkek