Class: RSpec::Core::Formatters::DeprecationFormatter::ImmediatePrinter Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | rspec-core/lib/rspec/core/formatters/deprecation_formatter.rb |
Class Method Summary
- .new(deprecation_stream, summary_stream, deprecation_formatter) ⇒ ImmediatePrinter constructor Internal use only
Instance Attribute Summary
- #deprecation_formatter readonly Internal use only
- #deprecation_stream readonly Internal use only
- #summary_stream readonly Internal use only
Instance Method Summary
- #deprecation_summary Internal use only
- #print_deprecation_message(data) Internal use only
Instance Attribute Details
#deprecation_formatter (readonly)
[ GitHub ]# File 'rspec-core/lib/rspec/core/formatters/deprecation_formatter.rb', line 114
attr_reader :deprecation_stream, :summary_stream, :deprecation_formatter
#deprecation_stream (readonly)
[ GitHub ]# File 'rspec-core/lib/rspec/core/formatters/deprecation_formatter.rb', line 114
attr_reader :deprecation_stream, :summary_stream, :deprecation_formatter
#summary_stream (readonly)
[ GitHub ]# File 'rspec-core/lib/rspec/core/formatters/deprecation_formatter.rb', line 114
attr_reader :deprecation_stream, :summary_stream, :deprecation_formatter
Instance Method Details
#deprecation_summary
[ GitHub ]# File 'rspec-core/lib/rspec/core/formatters/deprecation_formatter.rb', line 128
def deprecation_summary return if deprecation_formatter.count.zero? deprecation_stream.summarize(summary_stream, deprecation_formatter.count) end
#print_deprecation_message(data)
[ GitHub ]# File 'rspec-core/lib/rspec/core/formatters/deprecation_formatter.rb', line 123
def (data) = deprecation_formatter. (data) deprecation_stream.puts .to_s end