class Amber::Validators::BaseRule
- Amber::Validators::BaseRule
- Reference
- Object
Overview
This struct holds the validation rules to be performed
Direct Known Subclasses
Defined in:
amber/validators/params.crConstructors
- .new(field : String | Symbol, msg : String | Nil, allow_blank : Bool = true)
- .new(field : String | Symbol, msg : String | Nil, allow_blank : Bool = true, &block : String -> Bool)
Instance Method Summary
- #apply(params : Amber::Router::Params)
- #error
- #field : String
- #predicate : String -> Bool
- #present : Bool
- #value : String | Nil
Constructor Detail
def self.new(field : String | Symbol, msg : String | Nil, allow_blank : Bool = true, &block : String -> Bool)
#