Class: HTMLProofer::Issue
- Inherits:
-
Object
- Object
- HTMLProofer::Issue
- Defined in:
- lib/html-proofer/issue.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(path, desc, line: nil, status: -1,, content: nil) ⇒ Issue
constructor
A new instance of Issue.
- #to_s ⇒ Object
Constructor Details
#initialize(path, desc, line: nil, status: -1,, content: nil) ⇒ Issue
Returns a new instance of Issue.
5 6 7 8 9 10 11 |
# File 'lib/html-proofer/issue.rb', line 5 def initialize(path, desc, line: nil, status: -1, content: nil) @line = line.nil? ? '' : " (line #{line})" @path = path @desc = desc @status = status @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
3 4 5 |
# File 'lib/html-proofer/issue.rb', line 3 def content @content end |
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
3 4 5 |
# File 'lib/html-proofer/issue.rb', line 3 def desc @desc end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
3 4 5 |
# File 'lib/html-proofer/issue.rb', line 3 def line @line end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/html-proofer/issue.rb', line 3 def path @path end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/html-proofer/issue.rb', line 3 def status @status end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/html-proofer/issue.rb', line 13 def to_s "#{@path}: #{@desc}#{@line}" end |