struct Alfodr::Validators::ValidationBuilder
- Alfodr::Validators::ValidationBuilder
- Struct
- Value
- Object
Defined in:
alfodr/validators/params.crConstructors
Instance Method Summary
- #_validator : Params
- #clone
- #copy_with(_validator __validator = @_validator)
- #optional(param : String | Symbol, msg : String | Nil = nil, &b : String -> Bool)
- #required(param : String | Symbol, msg : String | Nil = nil)
- #required(param : String | Symbol, msg : String | Nil = nil, &b : String -> Bool)
Constructor Detail
Instance Method Detail
def optional(param : String | Symbol, msg : String | Nil = nil, &b : String -> Bool)
#
def required(param : String | Symbol, msg : String | Nil = nil, &b : String -> Bool)
#