Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
Amber::Validators::BaseRule
Inherits
Reference
<
Object
This struct holds the validation rules to be performed
Constructors
new
(field :
String
|
Symbol
, msg :
String
|
Nil
, allow_blank :
Bool
= true)
Source
new
(field :
String
|
Symbol
, msg :
String
|
Nil
, allow_blank :
Bool
= true, &block :
String
->
Bool
)
Source
Instance methods
apply
(params :
Amber::Router::Params
)
Source
error
Source
field
Source
predicate
Source
present
Source
value
Source