class RDoc::Task

def initialize(name = :rdoc) # :yield: self

:yield: self
def initialize(name = :rdoc)  # :yield: self
  if name.is_a? Hash then
    invalid_options = name.keys.map { |k| k.to_sym } -
      [:rdoc, :clobber_rdoc, :rerdoc]
    unless invalid_options.empty? then
      raise ArgumentError, "invalid options: #{invalid_options.join(", ")}"
    end
  end
  @name = name
  @rdoc_files = Rake::FileList.new
  @rdoc_dir = 'html'
  @main = nil
  @title = nil
  @template = nil
  @options = []
  yield self if block_given?
  define
end