HACKING.md in alba-2.2.0 vs HACKING.md in alba-2.3.0
- old
+ new
@@ -15,10 +15,11 @@
Class methods (DSL):
* `attribute` for block style attribute
* `attributes` for symbol style attribute
* `association` and its aliases such as `one` for association
+* `nested` for nested attribute
Instance methods:
* `serializable_hash` and `to_h` for hash from target object
* `serialize` and `to_json` for serialized JSON string
@@ -27,10 +28,10 @@
## Implementation
In `Alba::Resource` module there are some things to note.
-`@object` is an object for serialization. It's either singular object or collection.
+`@object` is an object for serialization. It's either a singular object or a collection.
Attribute object can be either `Symbol`, `Proc`, `Alba::Association` or `Alba::TypedAttribute`.
* `Symbol` attributes come from `attributes` method and are sent to `__send__` as method name
* `Proc` attributes come from `attribute` method and are `instance_exec`uted