struct Amber::Validators::ValidationBuilder

Defined in:

amber/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, allow_blank = true) #

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

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

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

[View source]