Typed struct and value objects
-
Updated
Jul 19, 2024 - Ruby
Typed struct and value objects
A minimal builder for struct-like classes in Ruby
Ruby structs but with type-checked attributes ⚡️🔐
Struct + validation + inheritable + default value + ...
ImmutableStructEx is yet another immutable struct. What makes ImmutableStructEx different, is that it allows you to create immutable structs in one step by default. In other words, other immutable struct gems force you to first define the struct, then instantiate the struct object; or, define the struct and instantiate the struct object via chai…
Struct constructor for key-value pairs (*archived since https://bugs.ruby-lang.org/issues/11925)
StructCast provides the refinement module that defines the method for casting to a Struct object
Add a description, image, and links to the struct topic page so that developers can more easily learn about it.
To associate your repository with the struct topic, visit your repo's landing page and select "manage topics."