mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import RDoc 3
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d7effd506f
commit
2ef9c50c6e
106 changed files with 8878 additions and 4179 deletions
45
lib/rdoc/stats/verbose.rb
Normal file
45
lib/rdoc/stats/verbose.rb
Normal file
|
@ -0,0 +1,45 @@
|
|||
##
|
||||
# Stats printer that prints everything documented, including the documented
|
||||
# status
|
||||
|
||||
class RDoc::Stats::Verbose < RDoc::Stats::Normal
|
||||
|
||||
##
|
||||
# Returns a marker for RDoc::CodeObject +co+ being undocumented
|
||||
|
||||
def nodoc co
|
||||
" (undocumented)" unless co.documented?
|
||||
end
|
||||
|
||||
def print_alias as # :nodoc:
|
||||
puts " alias #{as.new_name} #{as.old_name}#{nodoc as}"
|
||||
end
|
||||
|
||||
def print_attribute attribute # :nodoc:
|
||||
puts " #{attribute.definition} #{attribute.name}#{nodoc attribute}"
|
||||
end
|
||||
|
||||
def print_class(klass) # :nodoc:
|
||||
puts " class #{klass.full_name}#{nodoc klass}"
|
||||
end
|
||||
|
||||
def print_constant(constant) # :nodoc:
|
||||
puts " #{constant.name}#{nodoc constant}"
|
||||
end
|
||||
|
||||
def print_file(files_so_far, file) # :nodoc:
|
||||
super
|
||||
puts
|
||||
end
|
||||
|
||||
def print_method(method) # :nodoc:
|
||||
puts " #{method.singleton ? '::' : '#'}#{method.name}#{nodoc method}"
|
||||
end
|
||||
|
||||
def print_module(mod) # :nodoc:
|
||||
puts " module #{mod.full_name}#{nodoc mod}"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue