Sha256: 58a58f6f4f021f861a86fa9410dfc4fb862aee16fae24e0b7c4001fa43dae6a2
Contents?: true
Size: 298 Bytes
Versions: 12
Compression:
Stored size: 298 Bytes
Contents
module Riak module Crdt class BatchCounter attr_reader :accumulator def initialize @accumulator = 0 end def increment(amount = 1) @accumulator += amount end def decrement(amount = 1) increment -amount end end end end
Version data entries
12 entries across 12 versions & 2 rubygems