Class: Link
Instance Method Summary
collapse
#absolute_path, #exists?, #external?, #file_path, #hash, #ignore?, #ignores_pattern_check, #initialize, #internal?, #non_http_remote?, #parts, #path, #remote?, #scheme, #unslashed_directory?, #url, #valid?
Instance Method Details
#href ⇒ Object
5
6
7
|
# File 'lib/html/proofer/checks/links.rb', line 5
def href
real_attr @href
end
|
#id ⇒ Object
9
10
11
|
# File 'lib/html/proofer/checks/links.rb', line 9
def id
real_attr @id
end
|
#missing_href? ⇒ Boolean
17
18
19
|
# File 'lib/html/proofer/checks/links.rb', line 17
def missing_href?
href.nil? and name.nil? and id.nil?
end
|
#name ⇒ Object
13
14
15
|
# File 'lib/html/proofer/checks/links.rb', line 13
def name
real_attr @name
end
|
#placeholder? ⇒ Boolean
21
22
23
|
# File 'lib/html/proofer/checks/links.rb', line 21
def placeholder?
(id || name) && href.nil?
end
|