struct Therapy::Result::Success(T)

Defined in:

therapy/result.cr

Constructors

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(value : 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]