class RSpec::Core::Formatters::DeprecationFormatter::ImmediatePrinter

@private

Attributes

deprecation_formatter[R]
deprecation_stream[R]
summary_stream[R]

Public Class Methods

new(deprecation_stream, summary_stream, deprecation_formatter) click to toggle source
# File 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

Public Instance Methods

deprecation_summary() click to toggle source
# File 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) click to toggle source