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
Defined Under Namespace
Classes: CleanFilesReporter, ConfigReporter, DefaultReporter, FilesReporter, JSONReporter
Instance Attribute Summary collapse
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#lints ⇒ Object
readonly
Returns the value of attribute lints.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(lints, files) ⇒ Reporter
constructor
A new instance of Reporter.
- #report_lints ⇒ Object
Constructor Details
#initialize(lints, files) ⇒ Reporter
Returns a new instance of Reporter.
12 13 14 15 |
# File 'lib/scss_lint/reporter.rb', line 12 def initialize(lints, files) @lints = lints @files = files 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 |
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
17 18 19 |
# File 'lib/scss_lint/reporter.rb', line 17 def report_lints raise NotImplementedError, 'You must implement report_lints' end |