Class: Hash

Inherits:
Object show all
Defined in:
lib/picolena/templates/lib/core_exts.rb

Instance Method Summary collapse

Instance Method Details

#add(category) ⇒ Object



56
57
58
59
# File 'lib/picolena/templates/lib/core_exts.rb', line 56

def add(category)
  self[category]||={:size=>0}
  self[category][:size]+=1
end