README.md in sinclair-1.7.0 vs README.md in sinclair-1.8.0
- old
+ new
@@ -13,11 +13,11 @@
that enables creation of methods on the fly through class
methods
Yard Documentation
-------------------
-[https://www.rubydoc.info/gems/sinclair/1.7.0](https://www.rubydoc.info/gems/sinclair/1.7.0)
+[https://www.rubydoc.info/gems/sinclair/1.8.0](https://www.rubydoc.info/gems/sinclair/1.8.0)
Installation
---------------
- Install it
@@ -367,10 +367,16 @@
end
MyConfigurable.config.host # returns 'interstella.art'
MyConfigurable.config.port # returns 5555
+ # Configurable enables options that can be passed
+ MyConfigurable.as_options.host # returns 'interstella.art'
+
+ # Configurable enables options that can be passed with custom values
+ MyConfigurable.as_options(host: 'other').host # returns 'other'
+
MyConfigurable.reset_config
MyConfigurable.config.host # returns nil
MyConfigurable.config.port # returns 80
```
@@ -551,5 +557,6 @@
Projects Using
---------------
- [Arstotzka](https://github.com/darthjee/arstotzka)
- [Azeroth](https://github.com/darthjee/azeroth)
+- [Magicka](https://github.com/darthjee/magicka)