Class: CheckstyleReport::CheckstyleFile

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

Overview

File representation for Checkstyle format

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, errors) ⇒ CheckstyleFile

Returns a new instance of CheckstyleFile.

Parameters:



73
74
75
76
# File 'lib/checkstyle_report/checkstyle_report.rb', line 73

def initialize(file, errors)
  @file = file
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



78
79
80
# File 'lib/checkstyle_report/checkstyle_report.rb', line 78

def errors
  @errors
end

#fileObject (readonly)

Returns the value of attribute file.



78
79
80
# File 'lib/checkstyle_report/checkstyle_report.rb', line 78

def file
  @file
end