Class: RSpec::Core::Formatters::Loader Private
- Inherits:
-
Object
- Object
- RSpec::Core::Formatters::Loader
- 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
-
#formatters ⇒ Array
readonly
private
The loaded formatters.
-
#reporter ⇒ Reporter
readonly
private
The reporter.
Instance Method Summary collapse
-
#initialize(reporter) ⇒ Loader
constructor
private
A new instance of Loader.
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
#formatters ⇒ Array (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.
78 79 80 |
# File 'lib/rspec/core/formatters.rb', line 78 def formatters @formatters end |
#reporter ⇒ Reporter (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.
81 82 83 |
# File 'lib/rspec/core/formatters.rb', line 81 def reporter @reporter end |