Marten::Core::Validation
Provides validation to objects.
Instance methods
Returns a boolean indicating whether the object is invalid.
An optional context can be specified using the context argument. When this option is used, additional
validation rules that explicitly require a specific context might run.
Returns a boolean indicating whether the object is valid.
An optional context can be specified using the context argument. When this option is used, additional
validation rules that explicitly require a specific context might run.
validate
Allows to run custom validations for the considered object.
By default this method is empty and does nothing. It should be overridden in the specific class at hand in order to implement custom validation logics.