A gem for making value classes, with lightweight validation and coercion.
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 #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper