These are chat archives for dry-rb/chat
Next-gen ruby libs! » github.com/dry-rb » website: https://dry-rb.org » forum: https://discourse.dry-rb.org
freezeitself is a form of mutation.
Model::Foowhere one field is of type
Types::Strict::Array.member(Model::Bar). My problem is that that field is still mutable, I can append more Bars.
Types::Strict::Arrayor something like that. Or is dry-types not supposed to be always immutable?
Types::CoercibleFrozen, Types::StrictFrozen, ...
Struct.attributeto make it work the way you want