class Unparser::Either::Right

def bind

Returns:
  • (Either) -
    def bind
      yield(value)
    end

    def either(_left, right)

    Parameters:
    • right (#call) --
    • _left (#call) --
    def either(_left, right)
      right.call(value)
    end

    def fmap

    Returns:
    • (Either::Right) -
      def fmap
        Right.new(yield(value))
      end

      def from_left

      Returns:
      • (Object) -
      def from_left
        if block_given?
          yield(value)
        else
          fail "Expected left value, got #{inspect}"
        end
      end

      def from_right

      Returns:
      • (Object) -
      def from_right
        value
      end

      def lmap(&)

      Returns:
      • (Either::Right) -
        def lmap(&)
          require_block(&)
        end