class YARD::Rake::YardocTask

def initialize(name = :yard)

Other tags:
    Yieldparam: _self - the task object to allow any parameters

Other tags:
    Yield: - a block to allow any options to be modified on the task

Parameters:
  • name (String, Symbol) -- the name of the rake task
def initialize(name = :yard)
  @name = name
  @options = []
  @stats_options = []
  @files = []
  yield self if block_given?
  self.options += ENV['OPTS'].split(/[ ,]/) if ENV['OPTS']
  self.files   += ENV['FILES'].split(/[ ,]/) if ENV['FILES']
  self.options << '--no-stats' unless stats_options.empty?
  define
end