Exception: Botiasloop::MaxIterationsExceeded
- Defined in:
- lib/botiasloop.rb
Instance Attribute Summary collapse
-
#max_iterations ⇒ Object
readonly
Returns the value of attribute max_iterations.
Instance Method Summary collapse
-
#initialize(max_iterations) ⇒ MaxIterationsExceeded
constructor
A new instance of MaxIterationsExceeded.
Constructor Details
#initialize(max_iterations) ⇒ MaxIterationsExceeded
Returns a new instance of MaxIterationsExceeded.
43 44 45 46 |
# File 'lib/botiasloop.rb', line 43 def initialize(max_iterations) @max_iterations = max_iterations super("I've reached my thinking limit (#{max_iterations} iterations). Please try a more specific question.") end |
Instance Attribute Details
#max_iterations ⇒ Object (readonly)
Returns the value of attribute max_iterations.
41 42 43 |
# File 'lib/botiasloop.rb', line 41 def max_iterations @max_iterations end |