class Unique

Unique creates unique variable names.

Public Class Methods

next() click to toggle source
# File lib/unique.rb, line 9
def self.next
  @@curr += 1
  "temp_#{@@curr}".intern
end
reset() click to toggle source
# File lib/unique.rb, line 5
def self.reset # mostly for testing
  @@curr = 0
end