class YARD::Rake::YardocTask

def define

Returns:
  • (void) -
def define
  desc "Generate YARD Documentation" unless ::Rake.application.last_description
  task(name) do
    before.call if before.is_a?(Proc)
    yardoc = YARD::CLI::Yardoc.new
    yardoc.options[:verifier] = verifier if verifier
    yardoc.run(*(options + files))
    YARD::CLI::Stats.run(*(stats_options + ['--use-cache'])) unless stats_options.empty?
    after.call if after.is_a?(Proc)
  end
end