Class: CheckstyleReport::CheckstyleFile
- Inherits:
-
Object
- Object
- CheckstyleReport::CheckstyleFile
- Defined in:
- lib/checkstyle_report/checkstyle_report.rb
Overview
Represents a file in Checkstyle format.
Instance Attribute Summary collapse
-
#errors ⇒ Array<CheckstyleError>
readonly
Returns the array of CheckstyleError objects related to this file.
-
#file ⇒ String
readonly
Returns the name of the file.
Instance Method Summary collapse
-
#initialize(file, errors) ⇒ CheckstyleFile
constructor
Initializes a new instance of CheckstyleFile.
Constructor Details
#initialize(file, errors) ⇒ CheckstyleFile
Initializes a new instance of CheckstyleFile.
87 88 89 90 |
# File 'lib/checkstyle_report/checkstyle_report.rb', line 87 def initialize(file, errors) @file = file @errors = errors end |
Instance Attribute Details
#errors ⇒ Array<CheckstyleError> (readonly)
Returns the array of CheckstyleError objects related to this file.
100 101 102 |
# File 'lib/checkstyle_report/checkstyle_report.rb', line 100 def errors @errors end |
#file ⇒ String (readonly)
Returns the name of the file.
95 96 97 |
# File 'lib/checkstyle_report/checkstyle_report.rb', line 95 def file @file end |