Sha256: 2e71bb8a5a60058fbbc815b3aca8943d4eea17e1796c4c737f752dd1741b8e88

Contents?: true

Size: 116 Bytes

Versions: 6

Compression:

Stored size: 116 Bytes

Contents

module Lit
  class HashStorage < Hash
    def incr(key)
      self[key] ||= 0
      self[key] += 1
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lit-0.2.4 lib/lit/adapters/hash_storage.rb
lit-0.2.3 lib/lit/adapters/hash_storage.rb
lit-0.2.2 lib/lit/adapters/hash_storage.rb
lit-0.2.1 lib/lit/adapters/hash_storage.rb
lit-0.2.0 lib/lit/adapters/hash_storage.rb
lit-0.1.0 lib/lit/adapters/hash_storage.rb