class

CRZ::Containers::Option(A)

Inherits CRZ::Monad / CRZ::Applicative / CRZ::Functor / Reference / Object

base class

Class methods

of(value : T) : Option(T) forall T
Source

Instance methods

bind
Source
flat_map
Source
get_or_else(default : A) : A
Source
has_value
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
unwrap
Source
unwrap_or_else(default : A) : A
Source

Macros

match(val, cases)
Source

Nested types