Parent

Generators::MERBGenerator

Public Class Methods

for(options) click to toggle source

Generators may need to return specific subclasses depending on the options they are passed. Because of this we create them using a factory

# File lib/generators/templates/application/merb_stack/doc/rdoc/generators/merb_generator.rb, line 1137
def MERBGenerator.for(options)
    AllReferences::reset
    HtmlMethod::reset

    MERBGenerator.new(options)

end

Protected Class Methods

new(options) click to toggle source

Set up a new HTML generator. Basically all we do here is load up the correct output temlate

# File lib/generators/templates/application/merb_stack/doc/rdoc/generators/merb_generator.rb, line 1152
def initialize(options) #:not-new:
    @options    = options
    load_html_template
end

Public Instance Methods

generate(toplevels) click to toggle source

Build the initial indices and output objects based on an array of TopLevel objects containing the extracted information.

# File lib/generators/templates/application/merb_stack/doc/rdoc/generators/merb_generator.rb, line 1163
def generate(toplevels)
    @toplevels  = toplevels
    @files      = []
    @classes    = []

    write_style_sheet
    write_javascript
    gen_sub_directories()
    build_indices
    generate_html
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.