Exception: Rantly::TooManyTries
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Rantly::TooManyTries
- Defined in:
- lib/rantly/generator.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
Instance Method Summary collapse
-
#initialize(limit, nfailed) ⇒ TooManyTries
constructor
A new instance of TooManyTries.
- #tries ⇒ Object
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
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
43 44 45 |
# File 'lib/rantly/generator.rb', line 43 def limit @limit end |
Instance Method Details
#tries ⇒ Object
39 40 41 |
# File 'lib/rantly/generator.rb', line 39 def tries @nfailed end |