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/branches/ruby_1_8@6135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c8dbd6261d
commit
63d71ac0c6
2 changed files with 8 additions and 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>
|
Sat Apr 10 23:51:13 2004 Dave Thomas <dave@pragprog.com>
|
||||||
|
|
||||||
* lib/rdoc/code_objects.rb (RDoc::Context::add_to): Implementation of :enddoc:
|
* lib/rdoc/code_objects.rb (RDoc::Context::add_to): Implementation of :enddoc:
|
||||||
|
|
|
@ -441,10 +441,10 @@ module RDoc
|
||||||
cls = all[name]
|
cls = all[name]
|
||||||
if !cls
|
if !cls
|
||||||
cls = class_type.new(name, superclass)
|
cls = class_type.new(name, superclass)
|
||||||
all[name] = cls
|
all[name] = cls unless @done_documenting
|
||||||
end
|
end
|
||||||
puts "Adding class/module #{name} to #@name" if $DEBUG
|
puts "Adding class/module #{name} to #@name" if $DEBUG
|
||||||
collection[name] = cls
|
collection[name] = cls unless @done_documenting
|
||||||
cls.parent = self
|
cls.parent = self
|
||||||
end
|
end
|
||||||
cls
|
cls
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue