Class: HandyToolbox::Ids
- Inherits:
-
Object
- Object
- HandyToolbox::Ids
- Defined in:
- lib/handy_toolbox/ids.rb
Constant Summary collapse
- BACK =
0..99 are reserved
0
- FIRST =
100
- @@id =
FIRST - 1
Class Method Summary collapse
Class Method Details
.next ⇒ Object
9 10 11 12 |
# File 'lib/handy_toolbox/ids.rb', line 9 def self.next @@id += 1 @@id end |