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.



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

#contentObject (readonly)

Returns the value of attribute content.



172
173
174
# File 'lib/html-proofer/check/links.rb', line 172

def content
  @content
end

#hrefObject (readonly)

Returns the value of attribute href.



172
173
174
# File 'lib/html-proofer/check/links.rb', line 172

def href
  @href
end

#lineObject (readonly)

Returns the value of attribute line.



172
173
174
# File 'lib/html-proofer/check/links.rb', line 172

def line
  @line
end

Returns the value of attribute link.



172
173
174
# File 'lib/html-proofer/check/links.rb', line 172

def link
  @link
end

#pathObject (readonly)

Returns the value of attribute path.



172
173
174
# File 'lib/html-proofer/check/links.rb', line 172

def path
  @path
end