Module: ValidatorClassMethods

Included in:
ValidateWebsite::Validator
Defined in:
lib/validate_website/validator_class_methods.rb

Overview

Validator Class Methods

Instance Method Summary collapse

Instance Method Details

#tidyObject


12
13
14
15
16
17
18
19
# File 'lib/validate_website/validator_class_methods.rb', line 12

def tidy
  return @tidy if defined?(@tidy)

  @lib_tidy = TidyFFI::LibTidy
  @tidy = TidyFFI::Tidy
rescue TidyFFI::LibTidyNotInstalled
  @tidy = nil
end

#validator_uriObject


7
8
9
10
# File 'lib/validate_website/validator_class_methods.rb', line 7

def validator_uri
  @validator_uri ||=
    ENV['VALIDATOR_NU_URL'] || @html5_validator_service_url
end