Class: Bristow::Terminations::MaxMessages
- Inherits:
-
Bristow::Termination
- Object
- Bristow::Termination
- Bristow::Terminations::MaxMessages
- Defined in:
- lib/bristow/terminations/max_messages.rb
Instance Method Summary collapse
- #continue?(messages) ⇒ Boolean
-
#initialize(max_messages) ⇒ MaxMessages
constructor
A new instance of MaxMessages.
Constructor Details
#initialize(max_messages) ⇒ MaxMessages
Returns a new instance of MaxMessages.
4 5 6 |
# File 'lib/bristow/terminations/max_messages.rb', line 4 def initialize() @max_messages = end |
Instance Method Details
#continue?(messages) ⇒ Boolean
8 9 10 |
# File 'lib/bristow/terminations/max_messages.rb', line 8 def continue?() .size < @max_messages end |