Sha256: d7b52e1ca614faec63d6b29c27f8cf7397ccc42f952c9bcc53217867e0cbfdcc
Contents?: true
Size: 221 Bytes
Versions: 3
Compression:
Stored size: 221 Bytes
Contents
# frozen_string_literal: true class Kredis::Types::Cycle < Kredis::Types::Counter attr_accessor :values alias index value def value values[index] end def next set (index + 1) % values.size end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kredis-1.7.0 | lib/kredis/types/cycle.rb |
kredis-1.6.1 | lib/kredis/types/cycle.rb |
kredis-1.6.0 | lib/kredis/types/cycle.rb |