README.md in sinclair-1.13.0 vs README.md in sinclair-1.14.0
- old
+ new
@@ -11,17 +11,17 @@
This gem helps the creation of complex gems/concerns
that enables creation of methods on the fly through class
methods
-Current Release: [1.13.0](https://github.com/darthjee/sinclair/tree/1.13.0)
+Current Release: [1.14.0](https://github.com/darthjee/sinclair/tree/1.14.0)
-[Next release](https://github.com/darthjee/sinclair/compare/1.13.0...master)
+[Next release](https://github.com/darthjee/sinclair/compare/1.14.0...master)
Yard Documentation
-------------------
-[https://www.rubydoc.info/gems/sinclair/1.13.0](https://www.rubydoc.info/gems/sinclair/1.13.0)
+[https://www.rubydoc.info/gems/sinclair/1.14.0](https://www.rubydoc.info/gems/sinclair/1.14.0)
Installation
---------------
- Install it
@@ -625,10 +625,11 @@
<details>
<summary>Example of simple usage</summary>
```ruby
-class Human < Sinclair::Model.for(:name, :age, { gender: :undefined }, **{})
+class Human < Sinclair::Model
+ initialize_with :name, :age, { gender: :undefined }, **{}
end
human1 = Human.new(name: 'John Doe', age: 22)
human2 = Human.new(name: 'John Doe', age: 22)