struct Alfodr::Validators::ValidationBuilder

Defined in:

alfodr/validators/params.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(_validator : Params) #

[View source]

Instance Method Detail

def _validator : Params #

def clone #

[View source]
def copy_with(_validator __validator = @_validator) #

[View source]
def optional(param : String | Symbol, msg : String | Nil = nil, &b : String -> Bool) #

[View source]
def required(param : String | Symbol, msg : String | Nil = nil) #

[View source]
def required(param : String | Symbol, msg : String | Nil = nil, &b : String -> Bool) #

[View source]