Class: LinkCheckable
Constant Summary
HTML::Proofer::Utils::STORAGE_DIR
Instance Attribute Summary
#line
Instance Method Summary
collapse
#absolute_path, #allow_hash_href?, #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?
clean_content, create_nokogiri, #pluralize, swap
Instance Method Details
#href ⇒ Object
3
4
5
|
# File 'lib/html/proofer/checks/links.rb', line 3
def href
real_attr @href
end
|
#id ⇒ Object
7
8
9
|
# File 'lib/html/proofer/checks/links.rb', line 7
def id
real_attr @id
end
|
#missing_href? ⇒ Boolean
15
16
17
|
# File 'lib/html/proofer/checks/links.rb', line 15
def missing_href?
href.nil? && name.nil? && id.nil?
end
|
#name ⇒ Object
11
12
13
|
# File 'lib/html/proofer/checks/links.rb', line 11
def name
real_attr @name
end
|
#placeholder? ⇒ Boolean
19
20
21
|
# File 'lib/html/proofer/checks/links.rb', line 19
def placeholder?
(id || name) && href.nil?
end
|