Class: RDoc::Stats::Verbose

Inherits:
Normal show all
Defined in:
lib/rdoc/stats/verbose.rb

Overview

Stats printer that prints everything documented, including the documented status

Instance Method Summary collapse

Methods inherited from Normal

#begin_adding, #done_adding

Methods inherited from Quiet

#begin_adding, #done_adding, #initialize

Constructor Details

This class inherits a constructor from RDoc::Stats::Quiet

Instance Method Details

#nodoc(co) ⇒ Object

Returns a marker for RDoc::CodeObject co being undocumented



11
12
13
# File 'lib/rdoc/stats/verbose.rb', line 11

def nodoc co
  " (undocumented)" unless co.documented?
end

:nodoc:



15
16
17
# File 'lib/rdoc/stats/verbose.rb', line 15

def print_alias as # :nodoc:
  puts "    alias #{as.new_name} #{as.old_name}#{nodoc as}"
end

:nodoc:



19
20
21
# File 'lib/rdoc/stats/verbose.rb', line 19

def print_attribute attribute # :nodoc:
  puts "    #{attribute.definition} #{attribute.name}#{nodoc attribute}"
end

:nodoc:



23
24
25
# File 'lib/rdoc/stats/verbose.rb', line 23

def print_class(klass) # :nodoc:
  puts "  class #{klass.full_name}#{nodoc klass}"
end

:nodoc:



27
28
29
# File 'lib/rdoc/stats/verbose.rb', line 27

def print_constant(constant) # :nodoc:
  puts "    #{constant.name}#{nodoc constant}"
end

:nodoc:



31
32
33
34
# File 'lib/rdoc/stats/verbose.rb', line 31

def print_file(files_so_far, file) # :nodoc:
  super
  puts
end

:nodoc:



36
37
38
# File 'lib/rdoc/stats/verbose.rb', line 36

def print_method(method) # :nodoc:
  puts "    #{method.singleton ? '::' : '#'}#{method.name}#{nodoc method}"
end

:nodoc:



40
41
42
# File 'lib/rdoc/stats/verbose.rb', line 40

def print_module(mod) # :nodoc:
  puts "  module #{mod.full_name}#{nodoc mod}"
end