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

Fix :enddoc

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
dave 2004-04-10 14:52:30 +00:00
parent 38b49f65a7
commit 2be6b7f166
3 changed files with 8 additions and 3 deletions

View file

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