4
# Namespace for generators
4
# RDoc uses generators to turn parsed source code in the form of an
5
# RDoc::CodeObject tree into some form of output. RDoc comes with the HTML
6
# generator RDoc::Generator::Darkfish and an ri data generator
9
# = Registering a Generator
11
# Generators are registered by calling RDoc::RDoc.add_generator with the class
14
# class My::Awesome::Generator
15
# RDoc::RDoc.add_generator self
18
# = Adding Options to +rdoc+
20
# Before option processing in +rdoc+, RDoc::Options will call ::setup_options
21
# on the generator class with an RDoc::Options instance. The generator can
22
# use RDoc::Options#option_parser to add command-line options to the +rdoc+
23
# tool. See OptionParser for details on how to add options.
25
# You can extend the RDoc::Options instance with additional accessors for your
28
# = Generator Instantiation
30
# After parsing, RDoc::RDoc will instantiate a generator by calling
31
# #initialize with an RDoc::Options instance.
33
# RDoc will then call #generate on the generator instance and pass in an Array
34
# of RDoc::TopLevel instances, each representing a parsed file. You can use
35
# the various class methods on RDoc::TopLevel and in the RDoc::CodeObject tree
36
# to create your desired output format.
6
38
module RDoc::Generator