struct Therapy::Result::Failure(T)

Defined in:

therapy/result.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from struct Therapy::Result(T)

errors : Array(Therapy::Error) errors, failure? : Bool failure?, initialize initialize, map(&block : T -> Y) : Result(Y) forall Y map, success? : Bool success?, value : T value

Constructor methods inherited from struct Therapy::Result(T)

new new

Constructor Detail

def self.new(errors : Array(Therapy::Error)) #

[View source]

Class Method Detail

def self.with_msg(err_msg : String) : Failure(T) #

[View source]

Instance Method Detail

def errors : Array(Therapy::Error) #

[View source]
def failure? : Bool #

[View source]
def success? : Bool #

[View source]
def value : T #

[View source]