Class: StaticUID::Million
- Inherits:
-
Object
- Object
- StaticUID::Million
- Defined in:
- lib/static_uid/million.rb
Class Method Summary collapse
Class Method Details
.capacity ⇒ Object
10 11 12 |
# File 'lib/static_uid/million.rb', line 10 def self.capacity lookup_table.size end |
.fetch_lookup_table ⇒ Object
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 |