class Therapy::StringType

Defined in:

therapy/string_type.cr

Instance Method Summary

Instance methods inherited from class Therapy::BaseType(String)

coercing : self coercing, create_subcontext(parent : ParseContext, input : V, path) : ParseContext(T, V) forall V create_subcontext, optional : OptionalType(T) optional, parse(input : V) : Result(T) forall V parse, parse!(input) : T parse!

Instance Method Detail

def ends_with(suffix : String) : self #

[View source]
def matches(regex : Regex) : self #

[View source]
def max(size : Int32) : self #

[View source]
def min(size : Int32) : self #

[View source]
def one_of(options : Array(String)) : self #

[View source]
def one_of(*options) : self #

[View source]
def size(size : Int32) : self #

[View source]
def starts_with(prefix : String) : self #

[View source]
def strip : self #

[View source]