Module: HTMLProofer

Defined in:
lib/html-proofer.rb,
lib/html-proofer/log.rb,
lib/html-proofer/cache.rb,
lib/html-proofer/check.rb,
lib/html-proofer/issue.rb,
lib/html-proofer/utils.rb,
lib/html-proofer/runner.rb,
lib/html-proofer/element.rb,
lib/html-proofer/version.rb,
lib/html-proofer/configuration.rb,
lib/html-proofer/url_validator.rb

Defined Under Namespace

Modules: Configuration, Utils Classes: Cache, Check, Element, Issue, Log, Runner, SortedIssues, UrlValidator

Constant Summary collapse

VERSION =
'3.0.2'

Class Method Summary collapse

Class Method Details

.check_directories(directories, options = {}) ⇒ Object


34
35
36
37
38
# File 'lib/html-proofer.rb', line 34

def check_directories(directories, options = {})
  fail ArgumentError unless directories.is_a?(Array)
  options[:type] = :directory
  HTMLProofer::Runner.new(directories, options)
end

.check_directory(directory, options = {}) ⇒ Object


27
28
29
30
31
# File 'lib/html-proofer.rb', line 27

def check_directory(directory, options = {})
  fail ArgumentError unless directory.is_a?(String)
  options[:type] = :directory
  HTMLProofer::Runner.new([directory], options)
end

.check_file(file, options = {}) ⇒ Object


20
21
22
23
24
# File 'lib/html-proofer.rb', line 20

def check_file(file, options = {})
  fail ArgumentError unless file.is_a?(String)
  options[:type] = :file
  HTMLProofer::Runner.new(file, options)
end

41
42
43
44
45
# File 'lib/html-proofer.rb', line 41

def check_links(links, options = {})
  fail ArgumentError unless links.is_a?(Array)
  options[:type] = :links
  HTMLProofer::Runner.new(links, options)
end