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.
-
#linters ⇒ Object
Returns the value of attribute linters.
-
#processed_files ⇒ Object
Returns the value of attribute processed_files.
Instance Method Summary collapse
-
#initialize(found: 0, corrected: 0, exceptions: 0, linters: 0, files: 0, processed_files: {}) ⇒ Stats
constructor
A new instance of Stats.
Constructor Details
#initialize(found: 0, corrected: 0, exceptions: 0, linters: 0, files: 0, processed_files: {}) ⇒ Stats
Returns a new instance of Stats.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/erb_lint/stats.rb', line 11 def initialize( found: 0, corrected: 0, exceptions: 0, linters: 0, files: 0, processed_files: {} ) @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 |
#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 |