summaryrefslogtreecommitdiffstats
path: root/lib/rdoc/code_objects.rb
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-10 14:51:58 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-10 14:51:58 +0000
commit3eeb7ba1817ceb2551dd316f38e40c283b0bc85b (patch)
tree1b0038366ed8bb0d8f78fb75234241236d909193 /lib/rdoc/code_objects.rb
parent5c2e1f27a9111dd3603f4470d15bca5f4d6478be (diff)
downloadruby-3eeb7ba1817ceb2551dd316f38e40c283b0bc85b.tar.gz
ruby-3eeb7ba1817ceb2551dd316f38e40c283b0bc85b.tar.xz
ruby-3eeb7ba1817ceb2551dd316f38e40c283b0bc85b.zip
Fix :enddoc"
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/code_objects.rb')
-rw-r--r--lib/rdoc/code_objects.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rdoc/code_objects.rb b/lib/rdoc/code_objects.rb
index c48f5957b..700f93a2a 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