Sha256: d5cc3461a8c4e17befe7a29b1f108211864a4c3149e3a711b5474e82a294aacb

Contents?: true

Size: 591 Bytes

Versions: 1

Compression:

Stored size: 591 Bytes

Contents

# frozen_string_literal: true

module SiteHealth
  # Holds W3CValidators configuration data
  class W3CValidatorsConfiguration
    attr_accessor :css_uri, :html_uri

    def initialize
      @css_uri = W3CValidators::CSSValidator::CSS_VALIDATOR_URI
      @html_uri = W3CValidators::NuValidator::MARKUP_VALIDATOR_URI
    end

    # @return [Hash] configuration for W3CValidators::CSSValidator
    def css_config
      { validator_uri: css_uri }
    end

    # @return [Hash] configuration for W3CValidators::NuValidator
    def html_config
      { validator_uri: html_uri }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
site_health-0.2.0 lib/site_health/configuration/w3c_validators_configuration.rb