README.md in hexx-settings-0.0.1 vs README.md in hexx-settings-0.1.0
- old
+ new
@@ -47,9 +47,19 @@
MyGem::Settings.instance.foo # => :bar
# this is the same as above:
MyGem::Settings[:foo] # => :bar
```
+It also provides the class method `.initialize_from` to try loading
+settings from given initializer:
+
+```ruby
+MyGem::Settings.initialize_from "my_module", at: ENV["PATH_TO_INITIALIZERS"]
+```
+
+The method doesn't fail when the initializer hasn't been found, but instead
+warns the user.
+
[singleton instance]: http://ruby-doc.org/stdlib-1.9.3/libdoc/singleton/rdoc/Singleton.html
Installation
------------