Class: RSpec::Core::Formatters::DeprecationFormatter::ImmediatePrinter
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/deprecation_formatter.rb
Instance Attribute Summary collapse
-
#deprecation_formatter ⇒ Object
readonly
Returns the value of attribute deprecation_formatter.
-
#deprecation_stream ⇒ Object
readonly
Returns the value of attribute deprecation_stream.
-
#summary_stream ⇒ Object
readonly
Returns the value of attribute summary_stream.
Instance Method Summary collapse
- #deprecation_summary ⇒ Object
-
#initialize(deprecation_stream, summary_stream, deprecation_formatter) ⇒ ImmediatePrinter
constructor
A new instance of ImmediatePrinter.
- #print_deprecation_message(data) ⇒ Object
Constructor Details
#initialize(deprecation_stream, summary_stream, deprecation_formatter) ⇒ ImmediatePrinter
Returns a new instance of ImmediatePrinter.
116 117 118 119 120 121 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/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 ⇒ Object (readonly)
Returns the value of attribute deprecation_formatter.
114 115 116 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/deprecation_formatter.rb', line 114 def deprecation_formatter @deprecation_formatter end |
#deprecation_stream ⇒ Object (readonly)
Returns the value of attribute deprecation_stream.
114 115 116 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/deprecation_formatter.rb', line 114 def deprecation_stream @deprecation_stream end |
#summary_stream ⇒ Object (readonly)
Returns the value of attribute summary_stream.
114 115 116 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/deprecation_formatter.rb', line 114 def summary_stream @summary_stream end |
Instance Method Details
#deprecation_summary ⇒ Object
128 129 130 131 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/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) ⇒ Object
123 124 125 126 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/deprecation_formatter.rb', line 123 def (data) = deprecation_formatter.(data) deprecation_stream.puts .to_s end |