Type:
Class

RDoc::Task creates the following rake tasks to generate and clean up RDoc output:

rdoc

Main task for this RDoc task.

clobber_rdoc

Delete all the rdoc files. This target is automatically added to the main clobber target.

rerdoc

Rebuild the rdoc files from scratch, even if they are not out of date.

Simple Example:

require 'rdoc/task'

RDoc::Task.new do |rdoc|
  rdoc.main = "README.rdoc"
  rdoc.rdoc_files.include("README.rdoc", "lib   /*.rb")
end

The rdoc object passed to the block is an RDoc::Task object. See the attributes list for the RDoc::Task class for available customization options.

Specifying different task names

You may wish to give the task a different name, such as if you are generating two sets of documentation. For instance, if you want to have a development set of documentation including private methods:

require 'rdoc/task'

RDoc::Task.new :rdoc_dev do |rdoc|
  rdoc.main = "README.doc"
  rdoc.rdoc_files.include("README.rdoc", "lib/   *.rb")
  rdoc.options << "--all"
end

The tasks would then be named :rdoc_dev, :clobber_rdoc_dev, and :rerdoc_dev.

If you wish to have completely different task names, then pass a Hash as first argument. With the :rdoc, :clobber_rdoc and :rerdoc options, you can customize the task names to your liking.

For example:

require 'rdoc/task'

RDoc::Task.new(:rdoc => "rdoc", :clobber_rdoc => "rdoc:clean",
               :rerdoc => "rdoc:force")

This will create the tasks :rdoc, :rdoc:clean and :rdoc:force.

new

new(name = :rdoc) Class Public methods Create an

2015-05-04 19:19:37
check_names

check_names(names) Instance Public methods Ensures that names only

2015-05-04 19:31:20
before_running_rdoc

before_running_rdoc(&block) Instance Public methods The block passed to

2015-05-04 19:26:26
rerdoc_task_description

rerdoc_task_description() Instance Public methods

2015-05-04 19:43:33
rdoc_task_description

rdoc_task_description() Instance Public methods

2015-05-04 19:41:31
defaults

defaults() Instance Public methods Sets default task values

2015-05-04 19:33:22
option_list

option_list() Instance Public methods List of options that will be supplied

2015-05-04 19:36:29
define

define() Instance Public methods Create the tasks defined by this task lib.

2015-05-04 19:34:17
clobber_task_description

clobber_task_description() Instance Public methods

2015-05-04 19:32:17