Parent

RDoc::Stats

RDoc stats collector

Attributes

nodoc_constants[R]
nodoc_methods[R]
num_constants[R]
num_files[R]
num_methods[R]
total_files[R]

Public Class Methods

new(total_files, verbosity = 1) click to toggle source
    # File lib/rdoc/stats.rb, line 17
17:   def initialize(total_files, verbosity = 1)
18:     @nodoc_constants = 0
19:     @nodoc_methods   = 0
20: 
21:     @num_constants = 0
22:     @num_files     = 0
23:     @num_methods   = 0
24: 
25:     @total_files = total_files
26: 
27:     @start = Time.now
28: 
29:     @display = case verbosity
30:                when 0 then Quiet.new   total_files
31:                when 1 then Normal.new  total_files
32:                else        Verbose.new total_files
33:                end
34:   end

Public Instance Methods

add_alias(as) click to toggle source
    # File lib/rdoc/stats.rb, line 40
40:   def add_alias(as)
41:     @display.print_alias as
42:     @num_methods += 1
43:     @nodoc_methods += 1 if as.document_self and as.comment.empty?
44:   end
add_class(klass) click to toggle source
    # File lib/rdoc/stats.rb, line 46
46:   def add_class(klass)
47:     @display.print_class klass
48:   end
add_constant(constant) click to toggle source
    # File lib/rdoc/stats.rb, line 50
50:   def add_constant(constant)
51:     @display.print_constant constant
52:     @num_constants += 1
53:     @nodoc_constants += 1 if constant.document_self and constant.comment.empty?
54:   end
add_file(file) click to toggle source
    # File lib/rdoc/stats.rb, line 56
56:   def add_file(file)
57:     @display.print_file @num_files, file
58:     @num_files += 1
59:   end
add_method(method) click to toggle source
    # File lib/rdoc/stats.rb, line 61
61:   def add_method(method)
62:     @display.print_method method
63:     @num_methods += 1
64:     @nodoc_methods += 1 if method.document_self and method.comment.empty?
65:   end
add_module(mod) click to toggle source
    # File lib/rdoc/stats.rb, line 67
67:   def add_module(mod)
68:     @display.print_module mod
69:   end
begin_adding() click to toggle source
    # File lib/rdoc/stats.rb, line 36
36:   def begin_adding
37:     @display.begin_adding
38:   end
done_adding() click to toggle source
    # File lib/rdoc/stats.rb, line 71
71:   def done_adding
72:     @display.done_adding
73:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.