Method: GenericCountingPool#remove

Defined in:
lib/volt/utils/generic_counting_pool.rb

#remove(*args) ⇒ Object



35
36
37
38
39
40
41
42
43
# File 'lib/volt/utils/generic_counting_pool.rb', line 35

def remove(*args)
  item = __lookup(*args)
  item[0] -= 1

  if item[0] == 0
    # Last one using this item has removed it.
    super(*args)
  end
end