summaryrefslogtreecommitdiff
path: root/lib/rdoc/rdoc.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-14 00:39:16 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-14 00:39:16 +0000
commit0b6da24a5e24ff9ce8e153d2f073c2363e94b28e (patch)
tree95eb233fee15aae2fa2ba7dbeb1bb9c7bdfd9e1d /lib/rdoc/rdoc.rb
parentfe89874540f5e95fbfd933a72fff2ad31b8e8d07 (diff)
* lib/rdoc.rb: Updated to RDoc 3.6
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/rdoc.rb')
-rw-r--r--lib/rdoc/rdoc.rb39
1 files changed, 24 insertions, 15 deletions
diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb
index 3eab6cdfc4..6d7c4eace6 100644
--- a/lib/rdoc/rdoc.rb
+++ b/lib/rdoc/rdoc.rb
@@ -418,7 +418,7 @@ The internal error was:
@last_modified = setup_output_dir @options.op_dir, @options.force_update
end
- start_time = Time.now
+ @start_time = Time.now
file_info = parse_files @options.files
@@ -439,20 +439,7 @@ The internal error was:
@generator = gen_klass.new @options
- Dir.chdir @options.op_dir do
- begin
- self.class.current = self
-
- unless @options.quiet then
- $stderr.puts "\nGenerating #{gen_klass.name.sub(/^.*::/, '')} format into #{Dir.pwd}..."
- end
-
- @generator.generate file_info
- update_output_dir ".", start_time, @last_modified
- ensure
- self.class.current = nil
- end
- end
+ generate file_info
end
if @stats and (@options.coverage_report or not @options.quiet) then
@@ -464,6 +451,28 @@ The internal error was:
end
##
+ # Generates documentation for +file_info+ (from #parse_files) into the
+ # output dir using the generator selected
+ # by the RDoc options
+
+ def generate file_info
+ Dir.chdir @options.op_dir do
+ begin
+ self.class.current = self
+
+ unless @options.quiet then
+ $stderr.puts "\nGenerating #{@generator.class.name.sub(/^.*::/, '')} format into #{Dir.pwd}..."
+ end
+
+ @generator.generate file_info
+ update_output_dir '.', @start_time, @last_modified
+ ensure
+ self.class.current = nil
+ end
+ end
+ end
+
+ ##
# Removes a siginfo handler and replaces the previous
def remove_siginfo_handler