Sha256: 1e740cc33f4533dc32e49ca735394667e148567e5e86c813619c1ccc04473718

Contents?: true

Size: 440 Bytes

Versions: 1

Compression:

Stored size: 440 Bytes

Contents

# frozen_string_literal: true

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fear-3.0.0 lib/fear/either_api.rb