123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Core::Formatters::DeprecationFormatter::ImmediatePrinter Private

Relationships & Source Files
Inherits: Object
Defined in: rspec-core/lib/rspec/core/formatters/deprecation_formatter.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(deprecation_stream, summary_stream, deprecation_formatter) ⇒ ImmediatePrinter

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/formatters/deprecation_formatter.rb', line 116

def initialize(deprecation_stream, summary_stream, deprecation_formatter)
  @deprecation_stream = deprecation_stream

  @summary_stream = summary_stream
  @deprecation_formatter = deprecation_formatter
end

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