class

CrystalMonads::Either::Left(T)

Inherits CrystalMonads::Either < Reference < Object

Constructors

new(value : T)
Source

Instance methods

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