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