CRZ::Containers::Option(A)
Inherits CRZ::Monad < CRZ::Applicative < CRZ::Functor < Reference < Object
base class
Class methods
of(value : T) : Option(T) forall T
SourceInstance methods
bind
Sourceflat_map
Sourceget
Sourceget_or_else(default : A) : A
Sourcehas_value
Sourceto_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.
unwrap
Sourceunwrap_or_else(default : A) : A
SourceMacros
match(val, cases)
Source