Class: Herb::Embedded::LintResult
- Inherits:
-
Object
- Object
- Herb::Embedded::LintResult
- Defined in:
- lib/herb/embedded/lint_result.rb
Overview
The diagnostics produced for a single file.
Instance Attribute Summary collapse
-
#diagnostics ⇒ Object
readonly
Returns the value of attribute diagnostics.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
Instance Method Summary collapse
-
#initialize(file:, diagnostics: []) ⇒ LintResult
constructor
A new instance of LintResult.
Constructor Details
#initialize(file:, diagnostics: []) ⇒ LintResult
Returns a new instance of LintResult.
9 10 11 12 |
# File 'lib/herb/embedded/lint_result.rb', line 9 def initialize(file:, diagnostics: []) @file = file @diagnostics = diagnostics end |
Instance Attribute Details
#diagnostics ⇒ Object (readonly)
Returns the value of attribute diagnostics.
7 8 9 |
# File 'lib/herb/embedded/lint_result.rb', line 7 def diagnostics @diagnostics end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
7 8 9 |
# File 'lib/herb/embedded/lint_result.rb', line 7 def file @file end |