class Unparser::Either::Left
def bind(&)
-
(Either::Left
-
def bind(&) require_block(&) end
def either(left, _right)
-
_right
(#call
) -- -
left
(#call
) --
def either(left, _right) left.call(value) end
def fmap(&)
-
(Either::Left
-
def fmap(&) require_block(&) end
def from_left
-
(Object)
-
def from_left value end
def from_right
-
(Object)
-
def from_right if block_given? yield(value) else fail "Expected right value, got #{inspect}" end end
def lmap
-
(Either::Right
-
def lmap Left.new(yield(value)) end