When using the class method `attributes` in a class you get: - an initialize method with attributes as kwd params and the respective defaults - immutable instances - a to_h method using all attributes - an update method to create new imutable instances - a destruct_keys method aliased to to_h for pattern matching
Required Ruby Version
>= 4.0.1
Authors
Robert Dober
Versions
- 0.3.0 April 27, 2026 (17 KB)
- 0.2.9 April 13, 2026 (16.5 KB)
- 0.2.8 April 01, 2026 (16.5 KB)
- 0.2.7 April 01, 2026 (16.5 KB)
- 0.2.6 April 01, 2026 (16.5 KB)