Class: ERBLint::Stats

Inherits:
Object
  • Object
show all
Defined in:
lib/erb_lint/stats.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ignored: 0, found: 0, corrected: 0, exceptions: 0, linters: 0, files: 0, processed_files: {}) ⇒ Stats

Returns a new instance of Stats.



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/erb_lint/stats.rb', line 12

def initialize(
  ignored: 0,
  found: 0,
  corrected: 0,
  exceptions: 0,
  linters: 0,
  files: 0,
  processed_files: {}
)
  @ignored = ignored
  @found = found
  @corrected = corrected
  @exceptions = exceptions
  @linters = linters
  @files = files
  @processed_files = processed_files
end

Instance Attribute Details

#correctedObject

Returns the value of attribute corrected.



4
5
6
# File 'lib/erb_lint/stats.rb', line 4

def corrected
  @corrected
end

#exceptionsObject

Returns the value of attribute exceptions.



4
5
6
# File 'lib/erb_lint/stats.rb', line 4

def exceptions
  @exceptions
end

#filesObject

Returns the value of attribute files.



4
5
6
# File 'lib/erb_lint/stats.rb', line 4

def files
  @files
end

#foundObject

Returns the value of attribute found.



4
5
6
# File 'lib/erb_lint/stats.rb', line 4

def found
  @found
end

#ignoredObject

Returns the value of attribute ignored.



4
5
6
# File 'lib/erb_lint/stats.rb', line 4

def ignored
  @ignored
end

#lintersObject

Returns the value of attribute linters.



4
5
6
# File 'lib/erb_lint/stats.rb', line 4

def linters
  @linters
end

#processed_filesObject

Returns the value of attribute processed_files.



4
5
6
# File 'lib/erb_lint/stats.rb', line 4

def processed_files
  @processed_files
end