Class: HandyToolbox::Ids

Inherits:
Object
  • Object
show all
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

.nextObject



9
10
11
12
# File 'lib/handy_toolbox/ids.rb', line 9

def self.next
  @@id += 1
  @@id
end