Class: RSpec::Core::Formatters::FallbackMessageFormatter Private
- Inherits:
-
Object
- Object
- RSpec::Core::Formatters::FallbackMessageFormatter
- Defined in:
- lib/rspec/core/formatters/fallback_message_formatter.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Formatter for providing message output as a fallback when no other profiler implements #message
Instance Method Summary (collapse)
-
- (FallbackMessageFormatter) initialize(output)
constructor
private
A new instance of FallbackMessageFormatter.
-
- (void) message(notification)
Used by the reporter to send messages to the output stream.
Constructor Details
- (FallbackMessageFormatter) initialize(output)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of FallbackMessageFormatter
10 11 12 |
# File 'lib/rspec/core/formatters/fallback_message_formatter.rb', line 10 def initialize(output) @output = output end |
Instance Method Details
- (void) message(notification)
Used by the reporter to send messages to the output stream.
22 23 24 |
# File 'lib/rspec/core/formatters/fallback_message_formatter.rb', line 22 def (notification) output.puts notification. end |