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