diff options
| author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-10 14:52:30 +0000 |
|---|---|---|
| committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-10 14:52:30 +0000 |
| commit | 52637cac711dd81c9febbf71ac148e83da5006d1 (patch) | |
| tree | 94dadff0cbdbc6d481325647b6ab4862549043f1 | |
| parent | 92edd39e24a690f2d140c3f921573c663f33eb8a (diff) | |
| download | ruby-52637cac711dd81c9febbf71ac148e83da5006d1.tar.gz ruby-52637cac711dd81c9febbf71ac148e83da5006d1.tar.xz ruby-52637cac711dd81c9febbf71ac148e83da5006d1.zip | |
Fix :enddoc
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/rdoc/code_objects.rb | 4 | ||||
| -rw-r--r-- | lib/rdoc/parsers/parse_rb.rb | 2 |
3 files changed, 8 insertions, 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> * lib/rdoc/markup/simple_markup/inline.rb: Fix problem diff --git a/lib/rdoc/code_objects.rb b/lib/rdoc/code_objects.rb index c48f5957b..700f93a2a 100644 --- a/lib/rdoc/code_objects.rb +++ b/lib/rdoc/code_objects.rb @@ -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 diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index 9988b7133..1a660c1f3 100644 --- a/lib/rdoc/parsers/parse_rb.rb +++ b/lib/rdoc/parsers/parse_rb.rb @@ -1614,7 +1614,7 @@ module RDoc look_for_directives_in(container, comment) if container.done_documenting container.ongoing_visibility = save_visibility - return +# return end end keep_comment = true |
