summaryrefslogtreecommitdiff
path: root/lib/rdoc/rdoc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/rdoc.rb')
-rw-r--r--lib/rdoc/rdoc.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb
index ffaf56e4272..4b9fa887076 100644
--- a/lib/rdoc/rdoc.rb
+++ b/lib/rdoc/rdoc.rb
@@ -53,13 +53,15 @@ module RDoc
end
end
- private
+ def initialize
+ @stats = Stats.new
+ end
##
# Report an error message and exit
def error(msg)
- raise RDoc::Error, msg
+ raise ::RDoc::Error, msg
end
##
@@ -206,8 +208,6 @@ module RDoc
file_info
end
- public
-
##
# Format up one or more files according to the given arguments.
#
@@ -223,8 +223,6 @@ module RDoc
def document(argv)
TopLevel::reset
- @stats = Stats.new
-
options = Options.new GENERATORS
options.parse argv