Class: ERBLint::Stats
- Inherits:
-
Object
- Object
- ERBLint::Stats
- Defined in:
- lib/erb_lint/stats.rb
Instance Attribute Summary collapse
-
#corrected ⇒ Object
Returns the value of attribute corrected.
-
#exceptions ⇒ Object
Returns the value of attribute exceptions.
-
#files ⇒ Object
Returns the value of attribute files.
-
#found ⇒ Object
Returns the value of attribute found.
-
#ignored ⇒ Object
Returns the value of attribute ignored.
-
#linters ⇒ Object
Returns the value of attribute linters.
-
#processed_files ⇒ Object
Returns the value of attribute processed_files.
Instance Method Summary collapse
-
#initialize(ignored: 0, found: 0, corrected: 0, exceptions: 0, linters: 0, files: 0, processed_files: {}) ⇒ Stats
constructor
A new instance of Stats.
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
#corrected ⇒ Object
Returns the value of attribute corrected.
4 5 6 |
# File 'lib/erb_lint/stats.rb', line 4 def corrected @corrected end |
#exceptions ⇒ Object
Returns the value of attribute exceptions.
4 5 6 |
# File 'lib/erb_lint/stats.rb', line 4 def exceptions @exceptions end |
#files ⇒ Object
Returns the value of attribute files.
4 5 6 |
# File 'lib/erb_lint/stats.rb', line 4 def files @files end |
#found ⇒ Object
Returns the value of attribute found.
4 5 6 |
# File 'lib/erb_lint/stats.rb', line 4 def found @found end |
#ignored ⇒ Object
Returns the value of attribute ignored.
4 5 6 |
# File 'lib/erb_lint/stats.rb', line 4 def ignored @ignored end |
#linters ⇒ Object
Returns the value of attribute linters.
4 5 6 |
# File 'lib/erb_lint/stats.rb', line 4 def linters @linters end |
#processed_files ⇒ Object
Returns the value of attribute processed_files.
4 5 6 |
# File 'lib/erb_lint/stats.rb', line 4 def processed_files @processed_files end |