Sha256: 6561ceef090f25226d83762c8f8721d971c8cac5fb7062d19f5afe6ba51a9197
Contents?: true
Size: 367 Bytes
Versions: 5
Compression:
Stored size: 367 Bytes
Contents
# typed: true module Datadog module Utils # Generates values from a consistent sequence class Sequence def initialize(seed = 0, &block) @current = seed @next_item = block end def next next_item = @next_item ? @next_item.call(@current) : @current @current += 1 next_item end end end end
Version data entries
5 entries across 5 versions & 1 rubygems