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.
177 178 179 180 181 182 183 |
# File 'lib/html-proofer/check/links.rb', line 177 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.
175 176 177 |
# File 'lib/html-proofer/check/links.rb', line 175 def content @content end |
#href ⇒ Object (readonly)
Returns the value of attribute href.
175 176 177 |
# File 'lib/html-proofer/check/links.rb', line 175 def href @href end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
175 176 177 |
# File 'lib/html-proofer/check/links.rb', line 175 def line @line end |
#link ⇒ Object (readonly)
Returns the value of attribute link.
175 176 177 |
# File 'lib/html-proofer/check/links.rb', line 175 def link @link end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
175 176 177 |
# File 'lib/html-proofer/check/links.rb', line 175 def path @path end |