A gem for making value classes, with lightweight validation and coercion.
06-Aug-2020 1422
A gem for making value classes.Generates modules that provide conventional value semantics for a given set of attributes. The behaviour is similar to an immutable Struct class, plus extensible, lightweight validation and coercion.These are intended for internal use, as opposed to validating user input like ActiveRecord. Invalid or missing attributes cause an exception for developers, not an error message intended for application users.
A gem for making value classes, with lightweight validation and coercion. #ruby #rubydeveloper #rubyonrails #making #value #classes, #lightweight #validation #coercion. #classes, #gem https://rubyonrails.ba/link/a-gem-for-making-value-classes-with-lightweight-validation-and-coercion