class Term::Prompt::Question::Validators::LengthValidator

Defined in:

prompt/question/validators.cr

Constructors

Instance Method Summary

Instance methods inherited from class Term::Prompt::Validator

call(question : Question, value : String | Nil) : Bool call

Constructor Detail

def self.new(min : Int32 | Nil, max : Int32 | Nil) #

[View source]

Instance Method Detail

def call(question : Question, value : String | Nil) : Bool #

[View source]
def max : Int32 | Nil #

[View source]
def max=(max : Int32 | Nil) #

[View source]
def min : Int32 | Nil #

[View source]
def min=(min : Int32 | Nil) #

[View source]