Parent

Class/Module Index [+]

Quicksearch

RSpec::Core::Configuration::DeprecationReporterBuffer

@private

This buffer is used to capture all messages sent to the reporter during reporter initialization. It can then replay those messages after the formatter is correctly initialized. Otherwise, deprecation warnings during formatter initialization can cause an infinite loop.

Public Class Methods

new() click to toggle source
# File lib/rspec/core/configuration.rb, line 668
def initialize
  @calls = []
end

Public Instance Methods

deprecation(*args) click to toggle source
# File lib/rspec/core/configuration.rb, line 672
def deprecation(*args)
  @calls << args
end
play_onto(reporter) click to toggle source
# File lib/rspec/core/configuration.rb, line 676
def play_onto(reporter)
  @calls.each do |args|
    reporter.deprecation(*args)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.