Class: Unique

### Home Classes Methods

### In Files

- lib/unique.rb

### Parent

Object

### Methods

- ::next
- ::reset

### Files

- History.txt
- Manifest.txt
- README.txt

### Class/Module Index

Quicksearch

- SexpProcessor
- SexpProcessor::Environment
- CompositeSexpProcessor
- Examples
- NotEmptyError
- Object
- ParseTreeTestCase
- Sexp
- SexpAny
- SexpInterpreter
- SexpMatchSpecial
- SexpMatchSpecials
- SexpProcessorError
- SexpTypeError
- Unique
- UnknownNodeError
- UnsupportedNodeError

No matching classes.

# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.