Class: LinkCheck::InternalLink
- Inherits:
-
Object
- Object
- LinkCheck::InternalLink
- Defined in:
- lib/html-proofer/check/links.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#href ⇒ Object
readonly
Returns the value of attribute href.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#link ⇒ Object
readonly
Returns the value of attribute link.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(link, path, line, content) ⇒ InternalLink
constructor
A new instance of InternalLink.
Constructor Details
#initialize(link, path, line, content) ⇒ InternalLink
Returns a new instance of InternalLink.
174 175 176 177 178 179 180 |
# File 'lib/html-proofer/check/links.rb', line 174 def initialize(link, path, line, content) @link = link @href = @link.href @path = path @line = line @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
172 173 174 |
# File 'lib/html-proofer/check/links.rb', line 172 def content @content end |
#href ⇒ Object (readonly)
Returns the value of attribute href.
172 173 174 |
# File 'lib/html-proofer/check/links.rb', line 172 def href @href end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
172 173 174 |
# File 'lib/html-proofer/check/links.rb', line 172 def line @line end |
#link ⇒ Object (readonly)
Returns the value of attribute link.
172 173 174 |
# File 'lib/html-proofer/check/links.rb', line 172 def link @link end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
172 173 174 |
# File 'lib/html-proofer/check/links.rb', line 172 def path @path end |