Class: Lit::HashStorage

Inherits:
Hash
  • Object
show all
Defined in:
lib/lit/adapters/hash_storage.rb

Instance Method Summary collapse

Instance Method Details

#incr(key) ⇒ Object



3
4
5
6
# File 'lib/lit/adapters/hash_storage.rb', line 3

def incr(key)
  self[key] ||= 0
  self[key] += 1
end