类: RSpec::Core::Formatters::FallbackMessageFormatter 私有
- 继承
-
Object
- Object
- RSpec::Core::Formatters::FallbackMessageFormatter
- 定义在
- lib/rspec/core/formatters/fallback_message_formatter.rb
概述
此类是私有 API 的一部分。 应尽量避免使用此类,因为它可能在将来被删除或更改。
当没有其他分析器实现 #message 时,提供消息输出作为回退的格式化程序。
实例方法摘要 折叠
-
#initialize(output) ⇒ FallbackMessageFormatter 构造函数 私有
FallbackMessageFormatter 的新实例。
-
#message(notification) ⇒ void
由报告器用于将消息发送到输出流。
构造函数详细信息
#initialize(output) ⇒FallbackMessageFormatter
此方法是私有 API 的一部分。 应尽量避免使用此方法,因为它可能在将来被删除或更改。
返回 FallbackMessageFormatter 的新实例。
10 11 12 |
# File 'lib/rspec/core/formatters/fallback_message_formatter.rb', line 10 def initialize(output) @output = output end |
实例方法详细信息
#message(notification) ⇒void
由报告器用于将消息发送到输出流。
22 23 24 |
# File 'lib/rspec/core/formatters/fallback_message_formatter.rb', line 22 def (notification) output.puts notification. end |