class Flow::Prop::Validator(U)
- Flow::Prop::Validator(U)
- Reference
- Object
Defined in:
flow/property/validator.crConstant Summary
-
DEFAULT_PARAMS =
{required: false, max_length: 0, min_length: 0, size: 0, max_value: 0, min_value: 0, inclusion: [] of Hash(String, String), exclusion: [] of Hash(String, String)}
Constructors
Instance Method Summary
- #errors
- #exclusion : Array(Hash(String, String)) | Array(String)
- #exclusion=(exclusion : Array(Hash(String, String)) | Array(String))
- #inclusion : Array(Hash(String, String)) | Array(String)
- #inclusion=(inclusion : Array(Hash(String, String)) | Array(String))
- #max_length : Int32
- #max_length=(max_length : Int32)
- #max_value : Int32 | Float64
- #max_value=(max_value : Int32 | Float64)
- #min_length : Int32
- #min_length=(min_length : Int32)
- #min_value : Int32 | Float64
- #min_value=(min_value : Int32 | Float64)
- #name : String
- #name=(name : String)
- #required : Bool
- #required=(required : Bool)
- #size : Int32
- #size=(size : Int32)
- #valid?
- #validate!
- #value : U
- #value=(value : U)