class Alfodr::Validators::BaseRule

Overview

This struct holds the validation rules to be performed

Direct Known Subclasses

Defined in:

alfodr/validators/params.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(field : String | Symbol, msg : String | Nil, &block : String -> Bool) #

[View source]

Instance Method Detail

def apply(params : Alfodr::Router::Params) #

[View source]
def error #

[View source]
def field : String #

[View source]
def predicate : String -> Bool #

[View source]
def value : String | Nil #

[View source]