Class: LinkCheckable
Instance Attribute Summary
#line
Instance Method Summary
collapse
#absolute_path, #exists?, #external?, #file_path, #follow_location?, #hash, #ignore?, #ignore_empty_alt?, #ignores_pattern_check, #initialize, #internal?, #non_http_remote?, #parts, #path, #remote?, #scheme, #unslashed_directory?, #url, #valid?
create_nokogiri, swap
Instance Method Details
#href ⇒ Object
4
5
6
|
# File 'lib/html/proofer/checks/links.rb', line 4
def href
real_attr @href
end
|
#id ⇒ Object
8
9
10
|
# File 'lib/html/proofer/checks/links.rb', line 8
def id
real_attr @id
end
|
#missing_href? ⇒ Boolean
16
17
18
|
# File 'lib/html/proofer/checks/links.rb', line 16
def missing_href?
href.nil? && name.nil? && id.nil?
end
|
#name ⇒ Object
12
13
14
|
# File 'lib/html/proofer/checks/links.rb', line 12
def name
real_attr @name
end
|
#placeholder? ⇒ Boolean
20
21
22
|
# File 'lib/html/proofer/checks/links.rb', line 20
def placeholder?
(id || name) && href.nil?
end
|