Class: SCSSLint::Reporter
- Inherits:
-
Object
- Object
- SCSSLint::Reporter
- Defined in:
- lib/scss_lint/reporter.rb
Overview
Responsible for displaying lints to the user in some format.
Direct Known Subclasses
CleanFilesReporter, ConfigReporter, DefaultReporter, FilesReporter, JSONReporter, StatsReporter, TAPReporter
Defined Under Namespace
Classes: CleanFilesReporter, ConfigReporter, DefaultReporter, FilesReporter, JSONReporter, StatsReporter, TAPReporter
Instance Attribute Summary collapse
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#lints ⇒ Object
readonly
Returns the value of attribute lints.
-
#log ⇒ Object
readonly
Returns the value of attribute log.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(lints, files, logger) ⇒ Reporter
constructor
A new instance of Reporter.
- #report_lints ⇒ Object
Constructor Details
#initialize(lints, files, logger) ⇒ Reporter
Returns a new instance of Reporter.
13 14 15 16 17 |
# File 'lib/scss_lint/reporter.rb', line 13 def initialize(lints, files, logger) @lints = lints @files = files @log = logger end |
Instance Attribute Details
#files ⇒ Object (readonly)
Returns the value of attribute files.
4 5 6 |
# File 'lib/scss_lint/reporter.rb', line 4 def files @files end |
#lints ⇒ Object (readonly)
Returns the value of attribute lints.
4 5 6 |
# File 'lib/scss_lint/reporter.rb', line 4 def lints @lints end |
#log ⇒ Object (readonly)
Returns the value of attribute log.
4 5 6 |
# File 'lib/scss_lint/reporter.rb', line 4 def log @log end |
Class Method Details
.descendants ⇒ Object
6 7 8 |
# File 'lib/scss_lint/reporter.rb', line 6 def self.descendants ObjectSpace.each_object(Class).select { |klass| klass < self } end |
Instance Method Details
#report_lints ⇒ Object
19 20 21 |
# File 'lib/scss_lint/reporter.rb', line 19 def report_lints raise NotImplementedError, 'You must implement report_lints' end |