class

CrystalMonads::Maybe::Some(T)

Inherits CrystalMonads::Maybe < Reference < Object

Constructors

new(value : T)
Source

Instance methods

bind(proc : Proc, *args)
Source
bind(*args, &block : T -> _)
Source
fmap(proc : Proc, *args)
Source
fmap(*args, &block : T -> _)
Source
or(proc : Proc, *args) : Some(T)
Source
or(*args, &) : Some(T)
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
value
Source