Sha256: 868b79df0b195b8072c2cea203ac02c4da10dfa4aa0404eebfad774281f4a3f3
Contents?: true
Size: 546 Bytes
Versions: 2
Compression:
Stored size: 546 Bytes
Contents
# encoding: utf-8 module Nanoc::Extra::Validators # @deprecated Use the Checking API or the `check` command instead class W3C def initialize(dir, types) @dir = dir @types = types end def run args = [] types = @types.dup args << 'html' if types.delete(:html) args << 'css' if types.delete(:css) unless types.empty? raise Nanoc::Errors::GenericTrivial, "unknown type(s) specified: #{types.join(', ')}" end Nanoc::CLI.run(['check', args].flatten) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.8.0 | lib/nanoc/extra/validators/w3c.rb |
nanoc-3.7.5 | lib/nanoc/extra/validators/w3c.rb |