Class: LinkCheck::InternalLink

Inherits:
Object
  • Object
show all
Defined in:
lib/html-proofer/check/links.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



175
176
177
# File 'lib/html-proofer/check/links.rb', line 175

def content
  @content
end

#hrefObject (readonly)

Returns the value of attribute href.



175
176
177
# File 'lib/html-proofer/check/links.rb', line 175

def href
  @href
end

#lineObject (readonly)

Returns the value of attribute line.



175
176
177
# File 'lib/html-proofer/check/links.rb', line 175

def line
  @line
end

Returns the value of attribute link.



175
176
177
# File 'lib/html-proofer/check/links.rb', line 175

def link
  @link
end

#pathObject (readonly)

Returns the value of attribute path.



175
176
177
# File 'lib/html-proofer/check/links.rb', line 175

def path
  @path
end