README.md in u-attributes-2.1.1 vs README.md in u-attributes-2.2.0

- old
+ new

@@ -73,11 +73,11 @@ # Compatibility | u-attributes | branch | ruby | activemodel | | -------------- | ------- | -------- | ------------- | -| 2.1.1 | main | >= 2.2.0 | >= 3.2, < 6.1 | +| 2.2.0 | main | >= 2.2.0 | >= 3.2, < 6.1 | | 1.2.0 | v1.x | >= 2.2.0 | >= 3.2, < 6.1 | > **Note**: The activemodel is an optional dependency, this module [can be enabled](#activemodelvalidation-extension) to validate the attributes. [⬆️ Back to Top](#table-of-contents-) @@ -318,13 +318,12 @@ attribute :age attribute :name, default: 'John Doe' end ``` -There are 3 different strategies to define default values. +There are two different strategies to define default values. 1. Pass a regular object, like in the previous example. 2. Pass a `proc`/`lambda`, and if it has an argument you will receive the attribute value to do something before assign it. -3. Pass a **callable**, that is, a `class`, `module` or `instance` which responds to the `call` method. The behavior will be like the previous item (`proc`/`lambda`). ```ruby class Person include Micro::Attributes.with(:initialize)