Generator may need to return specific
subclasses depending on the options they are passed. Because of this we
create them using a factory
# File lib/rdoc/generator/html.rb, line 49
def self.for(options)
RDoc::Generator::AllReferences.reset
RDoc::Generator::Method.reset
if options.all_one_file
RDoc::Generator::HTMLInOne.new options
else
new options
end
end