hatch
hatch copied to clipboard
An address without a street? A person without a name? You don't need no invalid objects!
Improve Hatch to allow multiple validations for each parameter/property. ``` ruby class LoginForm include Hatch certify('email', 'must_be_present') do |email| !email.nil? && !email.empty? end certify('email', 'email_must_exist') do |email| # example using...
There are cases where the developer has to compare one property against another. E.g: certify that password.eq(password_confirmation) Provide a way to access other properties in the scope of a validation.