U:RDoc::NormalClass[iI" Task:ETI"RDoc::Task;TI"Rake::TaskLib;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"ORDoc::Task creates the following rake tasks to generate and clean up RDoc ;TI"output:;To:RDoc::Markup::BlankLine o:RDoc::Markup::List:
@type:
LABEL:@items[o:RDoc::Markup::ListItem:@label[I" rdoc;T;[o; ;[I""Main task for this RDoc task.;T@o;;[I"clobber_rdoc;T;[o; ;[I"PDelete all the rdoc files. This target is automatically added to the main ;TI"clobber target.;T@o;;[I"rerdoc;T;[o; ;[I"KRebuild the rdoc files from scratch, even if they are not out of date.;T@o; ;[I"Simple Example:;T@o:RDoc::Markup::Verbatim;[I"require 'rdoc/task'
;TI"
;TI"RDoc::Task.new do |rdoc|
;TI"! rdoc.main = "README.rdoc"
;TI"= rdoc.rdoc_files.include("README.rdoc", "lib /*.rb")
;TI" end
;T:@format0o; ;[I"LThe +rdoc+ object passed to the block is an RDoc::Task object. See the ;TI"Rattributes list for the RDoc::Task class for available customization options.;T@S:RDoc::Markup::Heading:
leveli: textI"$Specifying different task names;T@o; ;[I"HYou may wish to give the task a different name, such as if you are ;TI"Pgenerating two sets of documentation. For instance, if you want to have a ;TI"@development set of documentation including private methods:;T@o;;[I"require 'rdoc/task'
;TI"
;TI"(RDoc::Task.new :rdoc_dev do |rdoc|
;TI" rdoc.main = "README.doc"
;TI"= rdoc.rdoc_files.include("README.rdoc", "lib/ *.rb")
;TI" rdoc.options << "--all"
;TI" end
;T;0o; ;[I"7The tasks would then be named :rdoc_dev, ;TI"::clobber_rdoc_dev, and :rerdoc_dev.;T@o; ;[I"NIf you wish to have completely different task names, then pass a Hash as ;TI"Ifirst argument. With the :rdoc, :clobber_rdoc and ;TI"O:rerdoc options, you can customize the task names to your liking.;T@o; ;[I"For example:;T@o;;[ I"require 'rdoc/task'
;TI"
;TI"DRDoc::Task.new(:rdoc => "rdoc", :clobber_rdoc => "rdoc:clean",
;TI"- :rerdoc => "rdoc:force")
;T;0o; ;[I"IThis will create the tasks :rdoc, :rdoc:clean and ;TI":rdoc:force.;T:
@fileI"lib/rdoc/task.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[[
I"
external;TI"RW;T:publicFI"lib/rdoc/task.rb;T[
I"generator;TI"RW;T;F@e[
I" main;TI"RW;T;F@e[
I"markup;TI"RW;T;F@e[
I" name;TI"RW;T;F@e[
I"options;TI"RW;T;F@e[
I"
rdoc_dir;TI"RW;T;F@e[
I"rdoc_files;TI"RW;T;F@e[
I"
template;TI"RW;T;F@e[
I"
title;TI"RW;T;F@e[ [ [[I"
class;T[[;[[I"new;T@e[:protected[ [:private[ [I"
instance;T[[;[
[I"before_running_rdoc;F@e[I"check_names;F@e[I"clobber_task_description;F@e[I"
defaults;F@e[I"define;F@e[I"option_list;F@e[I"rdoc_task_description;F@e[I"rerdoc_task_description;F@e[;[ [;[ [I"clobber_task_name;F@e[I"rdoc_target;F@e[I"rdoc_task_name;F@e[I"rerdoc_task_name;F@e[ [U:RDoc::Context::Section[i 0o;;[ ;0;0[@`@`cRDoc::TopLevel