1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
dave 2004-04-11 01:49:10 +00:00
parent da8a0fa474
commit 7e9f3d2934
2 changed files with 8 additions and 2 deletions

View file

@ -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:

View file

@ -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