mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 09:04:05 +02:00
Sync RDoc 6.14.0
This commit is contained in:
parent
ca1ea95784
commit
03eb777c69
185 changed files with 2008 additions and 1655 deletions
|
@ -20,7 +20,7 @@ class RDoc::Stats::Normal < RDoc::Stats::Quiet
|
|||
##
|
||||
# Prints a file with a progress bar
|
||||
|
||||
def print_file files_so_far, filename
|
||||
def print_file(files_so_far, filename)
|
||||
progress_bar = sprintf("%3d%% [%2d/%2d] ",
|
||||
100 * files_so_far / @num_files,
|
||||
files_so_far,
|
||||
|
|
|
@ -7,7 +7,7 @@ class RDoc::Stats::Quiet
|
|||
##
|
||||
# Creates a new Quiet that will print nothing
|
||||
|
||||
def initialize num_files
|
||||
def initialize(num_files)
|
||||
@num_files = num_files
|
||||
end
|
||||
|
||||
|
|
|
@ -8,15 +8,15 @@ class RDoc::Stats::Verbose < RDoc::Stats::Normal
|
|||
##
|
||||
# Returns a marker for RDoc::CodeObject +co+ being undocumented
|
||||
|
||||
def nodoc co
|
||||
def nodoc(co)
|
||||
" (undocumented)" unless co.documented?
|
||||
end
|
||||
|
||||
def print_alias as # :nodoc:
|
||||
def print_alias(as) # :nodoc:
|
||||
puts " alias #{as.new_name} #{as.old_name}#{nodoc as}"
|
||||
end
|
||||
|
||||
def print_attribute attribute # :nodoc:
|
||||
def print_attribute(attribute) # :nodoc:
|
||||
puts " #{attribute.definition} #{attribute.name}#{nodoc attribute}"
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue