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
-
source
- 0.3.0 source April 27, 2026 (17 KB)
-
-
0.2.9
-
source
- 0.2.9 source April 13, 2026 (16.5 KB)
-
-
0.2.8
-
source
- 0.2.8 source April 01, 2026 (16.5 KB)
-
-
0.2.7
-
source
- 0.2.7 source April 01, 2026 (16.5 KB)
-
-
0.2.6
-
source
- 0.2.6 source April 01, 2026 (16.5 KB)
-