class Kemal::FormValidator::Length

Overview

Kemal::FormValidator::Length validates the length of a string.

Defined in:

kemal-form/validators.cr

Constructors

Instance Method Summary

Instance methods inherited from class Kemal::FormValidator::Validator

validate(field : Kemal::Form::Field) validate

Constructor Detail

def self.new(min : Int32 = -1, max : Int32 = -1, message = "") #

[View source]

Instance Method Detail

def validate(field : Kemal::Form::Field) #

[View source]