Class: RSpec::Core::Formatters::Loader Private

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/core/formatters.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

RSpec::Core::Formatters::Loader is an internal class for managing formatters used by a particular configuration. It is not expected to be used directly, but only through the configuration interface.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reporter) ⇒ Loader

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Loader.



70
71
72
73
74
75
# File 'lib/rspec/core/formatters.rb', line 70

def initialize(reporter)
  @formatters = []
  @reporter = reporter
  @setup = false
  @default_formatter = 'progress'
end

Instance Attribute Details

#formattersArray (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns the loaded formatters.

Returns:

  • (Array)

    the loaded formatters



78
79
80
# File 'lib/rspec/core/formatters.rb', line 78

def formatters
  @formatters
end

#reporterReporter (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns the reporter.

Returns:



81
82
83
# File 'lib/rspec/core/formatters.rb', line 81

def reporter
  @reporter
end