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