Exception: Rantly::TooManyTries

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/rantly/generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(limit, nfailed) ⇒ TooManyTries

Returns a new instance of TooManyTries.



35
36
37
38
# File 'lib/rantly/generator.rb', line 35

def initialize(limit, nfailed)
  @limit = limit
  @nfailed = nfailed
end

Instance Attribute Details

#limitObject (readonly)

Returns the value of attribute limit.



44
45
46
# File 'lib/rantly/generator.rb', line 44

def limit
  @limit
end

Instance Method Details

#triesObject



40
41
42
# File 'lib/rantly/generator.rb', line 40

def tries
  @nfailed
end