class HQMF::InstanceCounter

Simple class to issue monotonically increasing integer identifiers

Public Class Methods

new() click to toggle source
# File lib/util/counter.rb, line 4
def initialize
  @count=0
end

Public Instance Methods

next() click to toggle source
# File lib/util/counter.rb, line 12
def next
  @count+=1
end
reset() click to toggle source
# File lib/util/counter.rb, line 8
def reset
  @count=0
end