~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to lib/rdoc/stats/verbose.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-09-24 19:16:17 UTC
  • mfrom: (1.1.8 upstream) (13.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110924191617-o1qz4rcmqjot8zuy
Tags: 1.9.3~rc1-1
* New upstream release: 1.9.3 RC1.
  + Includes load.c fixes. Closes: #639959.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
##
 
2
# Stats printer that prints everything documented, including the documented
 
3
# status
 
4
 
 
5
class RDoc::Stats::Verbose < RDoc::Stats::Normal
 
6
 
 
7
  ##
 
8
  # Returns a marker for RDoc::CodeObject +co+ being undocumented
 
9
 
 
10
  def nodoc co
 
11
    " (undocumented)" unless co.documented?
 
12
  end
 
13
 
 
14
  def print_alias as # :nodoc:
 
15
    puts "    alias #{as.new_name} #{as.old_name}#{nodoc as}"
 
16
  end
 
17
 
 
18
  def print_attribute attribute # :nodoc:
 
19
    puts "    #{attribute.definition} #{attribute.name}#{nodoc attribute}"
 
20
  end
 
21
 
 
22
  def print_class(klass) # :nodoc:
 
23
    puts "  class #{klass.full_name}#{nodoc klass}"
 
24
  end
 
25
 
 
26
  def print_constant(constant) # :nodoc:
 
27
    puts "    #{constant.name}#{nodoc constant}"
 
28
  end
 
29
 
 
30
  def print_file(files_so_far, file) # :nodoc:
 
31
    super
 
32
    puts
 
33
  end
 
34
 
 
35
  def print_method(method) # :nodoc:
 
36
    puts "    #{method.singleton ? '::' : '#'}#{method.name}#{nodoc method}"
 
37
  end
 
38
 
 
39
  def print_module(mod) # :nodoc:
 
40
    puts "  module #{mod.full_name}#{nodoc mod}"
 
41
  end
 
42
 
 
43
end
 
44
 
 
45