Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Amber::Validators::ValidationBuilder
Inherits
Struct
<
Value
<
Object
Constructors
new
(_validator :
Params
)
Source
Instance methods
_validator
clone
Source
copy_with
(_validator __validator = @_validator)
Source
optional
(param :
String
|
Symbol
, msg :
String
|
Nil
= nil, allow_blank = true)
Source
optional
(param :
String
|
Symbol
, msg :
String
|
Nil
= nil, allow_blank = true, &b :
String
->
Bool
)
Source
required
(param :
String
|
Symbol
, msg :
String
|
Nil
= nil, allow_blank = false)
Source
required
(param :
String
|
Symbol
, msg :
String
|
Nil
= nil, allow_blank = false, &b :
String
->
Bool
)
Source