class Therapy::OptionalType(T)

Defined in:

therapy/optional_type.cr

Constructors

Instance Method Summary

Instance methods inherited from class Therapy::BaseType(T?)

optional : OptionalType(T?) optional, or(other : BaseType(U)) : UnionType(T?, U) forall U or, parse(input : V) : Result(T?) forall V parse, parse!(input) : T? parse!

Constructor Detail

def self.new(inner : BaseType(T)) #

[View source]

Instance Method Detail

def optional : OptionalType(T) #

[View source]
def parse(input : Nil) : Result(T | Nil) #

[View source]