module IdGenerator
Constants
- VERSION
Public Class Methods
configuration()
click to toggle source
# File lib/id_generator.rb, line 15 def self.configuration @configuration ||= Configuration.new end
configure() { |configuration| ... }
click to toggle source
# File lib/id_generator.rb, line 7 def self.configure yield(configuration) end
generate()
click to toggle source
# File lib/id_generator.rb, line 11 def self.generate id_generator.generate end
id_generator()
click to toggle source
# File lib/id_generator.rb, line 19 def self.id_generator @id_generator ||= IdGenerator::Generators::TimestampedRandom.new(configuration) end