class Attribool::ValidatorService

A simple interface to run validators, which should implement a valid? method which returns true if conditions are valid, and an error method which returns an exception class and message to be raised when validations fail.