class RSpec::Core::Formatters::DeprecationFormatter::ImmediatePrinter
@private
Attributes
Public Class Methods
# 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
Public Instance Methods
# 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
# File rspec-core/lib/rspec/core/formatters/deprecation_formatter.rb, line 123 def print_deprecation_message(data) deprecation_message = deprecation_formatter.deprecation_message_for(data) deprecation_stream.puts deprecation_message.to_s end