class Launch::Validators::BaseRule
- Launch::Validators::BaseRule
- Reference
- Object
Overview
This struct holds the validation rules to be performed
Direct Known Subclasses
Defined in:
launch/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 : Launch::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)
#
def self.new(field : String | Symbol, msg : String | Nil, allow_blank : Bool = true, &block : String -> Bool)
#