Sha256: 855119421d96ec0bad5c134f34b2060821e7a0a02b86b1f8aca36ad2784e99e7

Contents?: true

Size: 434 Bytes

Versions: 2

Compression:

Stored size: 434 Bytes

Contents

# frozen_string_literal: true

module Fear
  module EitherApi
    # @param value [any]
    # @return [Fear::Left]
    # @example
    #   Fear.left(42) #=> #<Fear::Left value=42>
    #
    def left(value)
      Fear::Left.new(value)
    end

    # @param value [any]
    # @return [Fear::Right]
    # @example
    #   Fear.right(42) #=> #<Fear::Right value=42>
    #
    def right(value)
      Fear::Right.new(value)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fear-1.2.0 lib/fear/either_api.rb
fear-1.1.0 lib/fear/either_api.rb