Class: StaticUID::Million

Inherits:
Object
  • Object
show all
Defined in:
lib/static_uid/million.rb

Class Method Summary collapse

Class Method Details

.capacityObject



10
11
12
# File 'lib/static_uid/million.rb', line 10

def self.capacity
  lookup_table.size
end

.fetch_lookup_tableObject



14
15
16
# File 'lib/static_uid/million.rb', line 14

def self.fetch_lookup_table
  capacity
end

.generate(i) ⇒ Object



4
5
6
7
8
# File 'lib/static_uid/million.rb', line 4

def self.generate(i)
  ensure_capacity!(i)

  lookup_table[i]
end