diff options
| author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-18 00:46:16 +0000 |
|---|---|---|
| committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-18 00:46:16 +0000 |
| commit | 6db079b0e7bfb3014f32bfb4e9ca5ddeed5b3bcf (patch) | |
| tree | 40585659bf4b9665ad0d258c415a6765a056d35d /lib/rdoc/options.rb | |
| parent | 7fe62665b40521438e9ea361b8b728ed4fa6c746 (diff) | |
| download | ruby-6db079b0e7bfb3014f32bfb4e9ca5ddeed5b3bcf.tar.gz ruby-6db079b0e7bfb3014f32bfb4e9ca5ddeed5b3bcf.tar.xz ruby-6db079b0e7bfb3014f32bfb4e9ca5ddeed5b3bcf.zip | |
Import RDoc r101.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/options.rb')
| -rw-r--r-- | lib/rdoc/options.rb | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/rdoc/options.rb b/lib/rdoc/options.rb index bc17fba8a..4fedb40b9 100644 --- a/lib/rdoc/options.rb +++ b/lib/rdoc/options.rb @@ -39,7 +39,7 @@ class RDoc::Options ## # Pattern for additional attr_... style methods - attr_reader :extra_accessors + attr_accessor :extra_accessors ## # Should we draw fileboxes in diagrams @@ -62,6 +62,11 @@ class RDoc::Options attr_accessor :generator ## + # Formatter to mark up text with + + attr_accessor :formatter + + ## # image format for diagrams attr_reader :image_format @@ -95,7 +100,7 @@ class RDoc::Options ## # The name to use for the output - attr_reader :op_name + attr_accessor :op_name ## # Are we promiscuous about showing module contents across multiple files @@ -105,7 +110,7 @@ class RDoc::Options ## # Don't display progress as we process the files - attr_reader :quiet + attr_accessor :quiet ## # Array of directories to search for files to satisfy an :include: @@ -175,7 +180,6 @@ class RDoc::Options @extra_accessor_flags = {} @promiscuous = false @force_update = false - @title = "RDoc Documentation" @css = nil @webcvs = nil @@ -513,6 +517,8 @@ Usage: #{opt.program_name} [options] [names...] end end + argv.insert(0, *ENV['RDOCOPT'].split) if ENV['RDOCOPT'] + opts.parse! argv @files = argv.dup |
