Sha256: a8d69ef714d22c03a41e89b5fe4a092b02adc9c55dc7ca6afc50bae19fa8f735

Contents?: true

Size: 196 Bytes

Versions: 71

Compression:

Stored size: 196 Bytes

Contents

##
# Unique creates unique variable names.

class Unique
  def self.reset # mostly for testing
    @@curr = 0
  end

  def self.next
    @@curr += 1
    "temp_#{@@curr}".intern
  end

  reset
end

Version data entries

71 entries across 69 versions & 6 rubygems

Version Path
brakeman-3.7.0 bundle/ruby/2.3.0/gems/sexp_processor-4.9.0/lib/unique.rb
brakeman-3.6.2 bundle/ruby/2.3.0/gems/sexp_processor-4.9.0/lib/unique.rb
sexp_processor-4.9.0 lib/unique.rb
brakeman-3.6.1 bundle/ruby/2.3.0/gems/sexp_processor-4.8.0/lib/unique.rb
brakeman-3.6.0 bundle/ruby/2.3.0/gems/sexp_processor-4.8.0/lib/unique.rb
sexp_processor-4.8.0 lib/unique.rb
brakeman-3.5.0 bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/unique.rb
brakeman-3.4.1 bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/unique.rb
brakeman-3.4.0 bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/unique.rb
brakeman-3.3.5 bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/unique.rb
brakeman-3.3.4 bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/unique.rb
brakeman-3.3.3 bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/unique.rb
brakeman-3.3.2 bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/unique.rb
brakeman-3.3.1 bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/unique.rb
brakeman-3.3.0 bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/unique.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/unique.rb
sexp_processor-4.7.0 lib/unique.rb
sexp_processor-4.6.1 lib/unique.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/sexp_processor-4.6.0/lib/unique.rb
sexp_processor-4.6.0 lib/unique.rb