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/trunk@6132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1f3819adc8
commit
5d716f9303
3 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sat Apr 10 23:51:13 2004 Dave Thomas <dave@pragprog.com>
|
||||||
|
|
||||||
|
* lib/rdoc/code_objects.rb (RDoc::Context::add_to): Implementation of :enddoc:
|
||||||
|
made one too many assumptions...
|
||||||
|
|
||||||
Sat Apr 10 00:00:19 2004 Dave Thomas <dave@pragprog.com>
|
Sat Apr 10 00:00:19 2004 Dave Thomas <dave@pragprog.com>
|
||||||
|
|
||||||
* lib/rdoc/markup/simple_markup/inline.rb: Fix problem
|
* lib/rdoc/markup/simple_markup/inline.rb: Fix problem
|
||||||
|
|
|
@ -233,14 +233,14 @@ module RDoc
|
||||||
else
|
else
|
||||||
cls = class_type.new(name, superclass)
|
cls = class_type.new(name, superclass)
|
||||||
puts "Adding class/module #{name} to #@name" if $DEBUG
|
puts "Adding class/module #{name} to #@name" if $DEBUG
|
||||||
collection[name] = cls
|
collection[name] = cls if @document_self && !@done_documenting
|
||||||
cls.parent = self
|
cls.parent = self
|
||||||
end
|
end
|
||||||
cls
|
cls
|
||||||
end
|
end
|
||||||
|
|
||||||
def add_to(array, thing)
|
def add_to(array, thing)
|
||||||
array << thing if @document_self
|
array << thing if @document_self && !@done_documenting
|
||||||
thing.parent = self
|
thing.parent = self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1614,7 +1614,7 @@ module RDoc
|
||||||
look_for_directives_in(container, comment)
|
look_for_directives_in(container, comment)
|
||||||
if container.done_documenting
|
if container.done_documenting
|
||||||
container.ongoing_visibility = save_visibility
|
container.ongoing_visibility = save_visibility
|
||||||
return
|
# return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
keep_comment = true
|
keep_comment = true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue