Class: HTMLProofer::UrlValidator

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/html_proofer/url_validator.rb,
lib/html_proofer/url_validator/external.rb,
lib/html_proofer/url_validator/internal.rb

Direct Known Subclasses

External, Internal

Defined Under Namespace

Classes: External, Internal

Instance Method Summary collapse

Methods included from Utils

#blank?, #create_nokogiri, #pluralize

Constructor Details

#initialize(runner) ⇒ UrlValidator

Returns a new instance of UrlValidator.



7
8
9
10
11
12
13
14
# File 'lib/html_proofer/url_validator.rb', line 7

def initialize(runner)
  @runner = runner

  @cache = @runner.cache
  @logger = @runner.logger

  @failed_checks = []
end