Class: DInstaller::Question::IdGenerator
- Inherits:
-
Object
- Object
- DInstaller::Question::IdGenerator
- Defined in:
- lib/dinstaller/question.rb
Overview
Helper class for generating unique ids
Class Method Summary collapse
-
.next ⇒ Integer
Generates the next id to be used.
Class Method Details
.next ⇒ Integer
Generates the next id to be used
97 98 99 100 |
# File 'lib/dinstaller/question.rb', line 97 def self.next @last_id ||= 0 @last_id += 1 end |