diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-11 01:49:10 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-11 01:49:10 +0000 |
commit | 7e9f3d2934ffdaf1bc98654ef216a5e39f4b7d3c (patch) | |
tree | b90f8108e1109d010bd993454619452cd4e060da | |
parent | da8a0fa4748164a46da482f498c00860bb335d49 (diff) | |
download | ruby-7e9f3d2934ffdaf1bc98654ef216a5e39f4b7d3c.tar.gz |
Forgot to check special case at top level
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/rdoc/code_objects.rb | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Sun Apr 11 10:47:04 2004 Dave Thomas <dave@pragprog.com> + + * lib/rdoc/code_objects.rb (RDoc::TopLevel::add_class_or_module): Toplevel + classes and modules are a special case too... (handle extending existing + classes with or without :enddoc:) + Sat Apr 10 23:51:13 2004 Dave Thomas <dave@pragprog.com> * lib/rdoc/code_objects.rb (RDoc::Context::add_to): Implementation of :enddoc: diff --git a/lib/rdoc/code_objects.rb b/lib/rdoc/code_objects.rb index 700f93a2a1..a60affb7de 100644 --- a/lib/rdoc/code_objects.rb +++ b/lib/rdoc/code_objects.rb @@ -441,10 +441,10 @@ module RDoc cls = all[name] if !cls cls = class_type.new(name, superclass) - all[name] = cls + all[name] = cls unless @done_documenting end puts "Adding class/module #{name} to #@name" if $DEBUG - collection[name] = cls + collection[name] = cls unless @done_documenting cls.parent = self end cls |