mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Update to RDoc 2.1.0 r112
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c62db0676b
commit
cd9e9c6deb
19 changed files with 460 additions and 285 deletions
|
@ -107,11 +107,6 @@ class RDoc::Options
|
|||
|
||||
attr_reader :promiscuous
|
||||
|
||||
##
|
||||
# Don't display progress as we process the files
|
||||
|
||||
attr_accessor :quiet
|
||||
|
||||
##
|
||||
# Array of directories to search for files to satisfy an :include:
|
||||
|
||||
|
@ -149,6 +144,11 @@ class RDoc::Options
|
|||
|
||||
attr_reader :title
|
||||
|
||||
##
|
||||
# Verbosity, zero means quiet
|
||||
|
||||
attr_accessor :verbosity
|
||||
|
||||
##
|
||||
# URL of web cvs frontend
|
||||
|
||||
|
@ -161,7 +161,6 @@ class RDoc::Options
|
|||
@main_page = nil
|
||||
@merge = false
|
||||
@exclude = []
|
||||
@quiet = false
|
||||
@generators = generators
|
||||
@generator_name = 'html'
|
||||
@generator = @generators[@generator_name]
|
||||
|
@ -180,6 +179,7 @@ class RDoc::Options
|
|||
@extra_accessor_flags = {}
|
||||
@promiscuous = false
|
||||
@force_update = false
|
||||
@verbosity = 1
|
||||
|
||||
@css = nil
|
||||
@webcvs = nil
|
||||
|
@ -424,9 +424,15 @@ Usage: #{opt.program_name} [options] [names...]
|
|||
|
||||
opt.on("--quiet", "-q",
|
||||
"Don't show progress as we parse.") do |value|
|
||||
@quiet = value
|
||||
@verbosity = 0
|
||||
end
|
||||
|
||||
opt.on("--verbose", "-v",
|
||||
"Display extra progress as we parse.") do |value|
|
||||
@verbosity = 2
|
||||
end
|
||||
|
||||
|
||||
opt.separator nil
|
||||
|
||||
opt.on("--ri", "-r",
|
||||
|
@ -559,6 +565,17 @@ Usage: #{opt.program_name} [options] [names...]
|
|||
@title ||= string
|
||||
end
|
||||
|
||||
##
|
||||
# Don't display progress as we process the files
|
||||
|
||||
def quiet
|
||||
@verbosity.zero?
|
||||
end
|
||||
|
||||
def quiet=(bool)
|
||||
@verbosity = bool ? 0 : 1
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue