Module: FakerUnique

Defined in:
lib/faker_unique.rb,
lib/faker_unique/version.rb

Defined Under Namespace

Classes: UniqueProxy

Constant Summary collapse

VERSION =
"0.1.0"

Instance Method Summary collapse

Instance Method Details

#uniq(max_retries = 100) ⇒ Object



5
6
7
8
9
# File 'lib/faker_unique.rb', line 5

def uniq(max_retries = 100)
  (@proxy ||= UniqueProxy.new(self)).tap do |p|
    p.max_retries = max_retries
  end
end