class Term::Prompt::Question::Validators::PatternValidator

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(pattern : Regex) #

[View source]

Instance Method Detail

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

[View source]
def pattern : Regex #

[View source]
def pattern=(pattern : Regex) #

[View source]