struct

Mangrullo::Result(T, E)

Inherits Struct < Value < Object

Standard Result type for consistent error handling

Constructors

new(success : Bool, value : T | Nil = nil, error : E | Nil = nil)
Source

Instance methods

error
Source
error=(error : E | Nil)
Source
success=(success : Bool)
Source
success?
Source
value
Source
value=(value : T | Nil)
Source