abstract class CRZ::Containers::Option(A)
- CRZ::Containers::Option(A)
- Reference
- Object
Overview
base class
Included Modules
Direct Known Subclasses
Defined in:
crz/option.crClass Method Summary
Instance Method Summary
- #bind(&block : A -> Option(B)) : Option(B) forall B
- #flat_map(&block : A -> Option(B)) : Option(B) forall B
- #get : A
- #get_or_else(default : A) : A
- #has_value : Bool
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #unwrap : A
- #unwrap_or_else(default : A) : A
Macro Summary
Instance methods inherited from module CRZ::Monad(A)
<<(other : Monad(B)) : Monad(A) forall B
<<,
>=(block : A -> Monad(B)) : Monad(B) forall B
>=,
>>(other : Monad(B)) : Monad(B) forall B
>>,
ap(func : Applicative(A -> B)) : Applicative(B) forall B
ap,
map(&block : A -> B) : Monad(B) forall B
map
Instance methods inherited from module CRZ::Applicative(A)
*(func : Applicative(A -> B)) : Applicative(B) forall B
*
Class methods inherited from module CRZ::Applicative(A)
of(value : A) : Applicative(A) forall A
of
Instance methods inherited from module CRZ::Functor(A)
replace(other : Functor(B), v : A) : Functor(A)
replace
Class Method Detail
Instance Method Detail
def to_s
#
Description copied from class Object
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
.