Sync RDoc 6.14.0

This commit is contained in:
Stan Lo 2025-05-22 22:49:04 +01:00 committed by Takashi Kokubun
parent ca1ea95784
commit 03eb777c69
185 changed files with 2008 additions and 1655 deletions

View file

@ -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,

View file

@ -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

View file

@ -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