Class: SCSSLint::Reporter

Inherits:
Object
  • Object
show all
Defined in:
lib/scss_lint/reporter.rb

Overview

Responsible for displaying lints to the user in some format.

Defined Under Namespace

Classes: ConfigReporter, DefaultReporter, FilesReporter, JSONReporter, XMLReporter

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#lintsObject (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

.descendantsObject


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_lintsObject

Raises:

  • (NotImplementedError)

14
15
16
# File 'lib/scss_lint/reporter.rb', line 14

def report_lints
  raise NotImplementedError, 'You must implement report_lints'
end