CrystalMonads::Maybe::Some(T)
Inherits CrystalMonads::Maybe < Reference < Object
Constructors
new(value : T)
SourceInstance methods
bind(proc : Proc, *args)
Sourcebind(*args, &block : T -> _)
Sourcefmap(proc : Proc, *args)
Sourcefmap(*args, &block : T -> _)
Sourceor(proc : Proc, *args) : Some(T)
Sourceor(*args, &) : Some(T)
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.
value
Source