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.



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

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

Instance Attribute Details

#limitObject (readonly)

Returns the value of attribute limit.



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

def limit
  @limit
end

Instance Method Details

#triesObject



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

def tries
  @nfailed
end