From 5d716f9303c5d46ddb507241a4c75d5421bc5e36 Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 10 Apr 2004 14:51:58 +0000 Subject: Fix :enddoc" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/code_objects.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rdoc/code_objects.rb') diff --git a/lib/rdoc/code_objects.rb b/lib/rdoc/code_objects.rb index c48f5957b2..700f93a2a1 100644 --- a/lib/rdoc/code_objects.rb +++ b/lib/rdoc/code_objects.rb @@ -233,14 +233,14 @@ module RDoc else cls = class_type.new(name, superclass) puts "Adding class/module #{name} to #@name" if $DEBUG - collection[name] = cls + collection[name] = cls if @document_self && !@done_documenting cls.parent = self end cls end def add_to(array, thing) - array << thing if @document_self + array << thing if @document_self && !@done_documenting thing.parent = self end -- cgit v1.2.3