Simple stats collector
[Source]
# File rdoc.rb, line 41 41: def initialize 42: @num_files = @num_classes = @num_modules = @num_methods = 0 43: @start = Time.now 44: end
# File rdoc.rb, line 45 45: def print 46: puts "Files: #@num_files" 47: puts "Classes: #@num_classes" 48: puts "Modules: #@num_modules" 49: puts "Methods: #@num_methods" 50: puts "Elapsed: " + sprintf("%0.3fs", Time.now - @start) 51: end
[Validate]