class HQMF2JS::Generator::Counter
Simple class to issue monotonically increasing integer identifiers
Public Class Methods
new()
click to toggle source
# File lib/generator/js.rb, line 335 def initialize @count = 0 end
Public Instance Methods
new_id()
click to toggle source
# File lib/generator/js.rb, line 339 def new_id @count+=1 end