define (Rake::RDocTask)

         # File lib/rake/rdoctask.rb, line 85
     85:     def define
     86:       if name.to_s != "rdoc"
     87:         desc "Build the RDOC HTML Files"
     88:       end
     89:
     90:       desc "Build the #{name} HTML Files"
     91:       task name
     92:
     93:       desc "Force a rebuild of the RDOC files"
     94:       task paste("re", name) => [paste("clobber_", name), name]
     95:
     96:       desc "Remove rdoc products"
     97:       task paste("clobber_", name) do
     98:         rm_r rdoc_dir rescue nil
     99:       end
    100:
    101:       task :clobber => [paste("clobber_", name)]
    102:
    103:       directory @rdoc_dir
    104:       task name => [rdoc_target]
    105:       file rdoc_target => @rdoc_files + [$rakefile] do
    106:         rm_r @rdoc_dir rescue nil
    107:         args = option_list + @rdoc_files
    108:         if @external
    109:           argstring = args.join(' ')
    110:           sh %{ruby -Ivendor vender/rd #{argstring}}
    111:         else
    112:           require 'rdoc/rdoc'
    113:           RDoc::RDoc.new.document(args)
    114:         end
    115:       end
    116:       self
    117:     end