Exception: Rant::TooManyTries
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Rant::TooManyTries
- Defined in:
- lib/rant/generator.rb
Instance Method Summary collapse
-
#initialize(limit, nfailed) ⇒ TooManyTries
constructor
A new instance of TooManyTries.
- #to_s ⇒ Object
- #tries ⇒ Object
Constructor Details
#initialize(limit, nfailed) ⇒ TooManyTries
Returns a new instance of TooManyTries.
24 25 26 27 |
# File 'lib/rant/generator.rb', line 24 def initialize(limit,nfailed) @limit = limit @nfailed = nfailed end |
Instance Method Details
#to_s ⇒ Object
33 34 35 |
# File 'lib/rant/generator.rb', line 33 def to_s "Exceed gen limit #{@limit}: #{@nfailed} failed guards)" end |
#tries ⇒ Object
29 30 31 |
# File 'lib/rant/generator.rb', line 29 def tries @nfailed end |