Parent

Methods

Class/Module Index [+]

Quicksearch

Nanoc::Extra::Validators::Links

@deprecated Use the Checking API or the `check` command instead

Public Class Methods

new(dir, index_filenames, params={}) click to toggle source
# File lib/nanoc/extra/validators/links.rb, line 7
def initialize(dir, index_filenames, params={})
  @include_internal = params.has_key?(:internal) && params[:internal]
  @include_external = params.has_key?(:external) && params[:external]
end

Public Instance Methods

run() click to toggle source
# File lib/nanoc/extra/validators/links.rb, line 12
def run
  checks = []
  checks << 'ilinks' if options[:internal]
  checks << 'elinks' if options[:external]
  Nanoc::CLI.run [ 'check', checks ].flatten
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.