abstract struct Therapy::Result(T)

Direct Known Subclasses

Defined in:

therapy/result.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

abstract def errors : Array(Therapy::Error) #

[View source]
abstract def failure? : Bool #

[View source]
def initialize #

[View source]
def map(&block : T -> Y) : Result(Y) forall Y #

[View source]
abstract def success? : Bool #

[View source]
abstract def value : T #

[View source]