Class: RSpec::Core::Formatters::DeprecationFormatter::FileStream 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 |
Overview
Wraps a File object and provides file-specific operations.
Class Method Summary
- .new(file) ⇒ FileStream constructor Internal use only
Instance Method Summary
- #puts(*args) Internal use only
- #summarize(summary_stream, deprecation_count) Internal use only
Instance Method Details
#puts(*args)
[ GitHub ]# File 'rspec-core/lib/rspec/core/formatters/deprecation_formatter.rb', line 207
def puts(*args) @file.puts(*args) end
#summarize(summary_stream, deprecation_count)
[ GitHub ]# File 'rspec-core/lib/rspec/core/formatters/deprecation_formatter.rb', line 211
def summarize(summary_stream, deprecation_count) path = @file.respond_to?(:path) ? @file.path : @file.inspect summary_stream.puts "\n#{Helpers.pluralize(deprecation_count, 'deprecation')} logged to #{path}" puts RAISE_ERROR_CONFIG_NOTICE end