Class: Link
Instance Method Summary
collapse
#absolute_path, #exists?, #external?, #file_path, #hash, #ignore?, #initialize, #internal?, #parts, #path, #remote?, #url, #valid?
Instance Method Details
#href ⇒ Object
5
6
7
|
# File 'lib/html/proofer/checks/links.rb', line 5
def href
@href unless @href.nil? || @href.empty?
end
|
#missing_href? ⇒ Boolean
9
10
11
|
# File 'lib/html/proofer/checks/links.rb', line 9
def missing_href?
href.nil? and @name.nil? and @id.nil?
end
|
#unslashed_directory? ⇒ Boolean
13
14
15
|
# File 'lib/html/proofer/checks/links.rb', line 13
def unslashed_directory?
File.directory? absolute_path and !absolute_path.end_with? File::SEPARATOR
end
|