README.md in config_mapper-1.5.0 vs README.md in config_mapper-1.6.0
- old
+ new
@@ -244,9 +244,15 @@
#=> ".position.y" => #<ArgumentError: invalid value for Integer(): "fore">,
#=> ".bogus" => #<NoMethodError: undefined method `bogus=' for #<State:0x007fc8e9b12a60>>
#=> }
```
+`ConfigStruct.from_data` instantiates an object from data, raising an exception if errors are encountered:
+
+```ruby
+state = State.from_data(data)
+```
+
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
## Contributing