Class: DInstaller::Question::IdGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/dinstaller/question.rb

Overview

Helper class for generating unique ids

Class Method Summary collapse

Class Method Details

.nextInteger

Generates the next id to be used

Returns:

  • (Integer)


97
98
99
100
# File 'lib/dinstaller/question.rb', line 97

def self.next
  @last_id ||= 0
  @last_id += 1
end