summaryrefslogtreecommitdiffstats
path: root/lib/rdoc/options.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-13 03:02:49 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-13 03:02:49 +0000
commit3f210cac15bb5e01c343ebe3a89193bdd844f529 (patch)
tree3520d4f92a4fc3f01816d950cc503b7639239c41 /lib/rdoc/options.rb
parent72c7fc35d49a4041da22c04ca066fa4a47a46683 (diff)
downloadruby-3f210cac15bb5e01c343ebe3a89193bdd844f529.tar.gz
ruby-3f210cac15bb5e01c343ebe3a89193bdd844f529.tar.xz
ruby-3f210cac15bb5e01c343ebe3a89193bdd844f529.zip
Reorganize RDoc generators
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/options.rb')
-rw-r--r--lib/rdoc/options.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/rdoc/options.rb b/lib/rdoc/options.rb
index 078635121..a36fb017a 100644
--- a/lib/rdoc/options.rb
+++ b/lib/rdoc/options.rb
@@ -133,6 +133,13 @@ class RDoc::Options
attr_reader :template
##
+ # Template class for file generation
+ #--
+ # HACK around dependencies in lib/rdoc/generators/html.rb
+
+ attr_accessor :template_class # :nodoc:
+
+ ##
# Documentation title
attr_reader :title
@@ -156,6 +163,7 @@ class RDoc::Options
@rdoc_include = []
@title = nil
@template = nil
+ @template_class = nil
@diagram = false
@fileboxes = false
@show_hash = false
@@ -379,6 +387,7 @@ Usage: #{opt.program_name} [options] [names...]
"Put all the output into a single file.") do |value|
@all_one_file = value
@inline_source = value if value
+ @template = 'one_page_html'
end
opt.separator nil
@@ -411,7 +420,7 @@ Usage: #{opt.program_name} [options] [names...]
opt.on("--quiet", "-q",
"Don't show progress as we parse.") do |value|
- @quite = value
+ @quiet = value
end
opt.separator nil