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.



56
57
58
59
# File 'lib/checkstyle_report/checkstyle_report.rb', line 56

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

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



61
62
63
# File 'lib/checkstyle_report/checkstyle_report.rb', line 61

def errors
  @errors
end

#fileObject (readonly)

Returns the value of attribute file.



61
62
63
# File 'lib/checkstyle_report/checkstyle_report.rb', line 61

def file
  @file
end