Class: GEPA::Logging::BufferingLogger
- Defined in:
- lib/gepa/logging/logger.rb
Overview
Logger that captures messages into memory (handy for tests).
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
-
#initialize ⇒ BufferingLogger
constructor
A new instance of BufferingLogger.
- #log(message) ⇒ Object
Constructor Details
#initialize ⇒ BufferingLogger
Returns a new instance of BufferingLogger.
47 48 49 |
# File 'lib/gepa/logging/logger.rb', line 47 def initialize = [] end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
45 46 47 |
# File 'lib/gepa/logging/logger.rb', line 45 def end |
Instance Method Details
#log(message) ⇒ Object
51 52 53 |
# File 'lib/gepa/logging/logger.rb', line 51 def log() << end |