summaryrefslogtreecommitdiff
path: root/lib/rdoc/code_objects.rb
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-02 01:20:58 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-02 01:20:58 +0000
commitef38efca9f4835ee2306f9b56eb26a2eaa14dc7a (patch)
treea5cafd6b8942aacdb00d97541eaeaa9e9ded6a3c /lib/rdoc/code_objects.rb
parent64ec09d45675fa8a12594c00b8b4acccf9960fce (diff)
Fix parse bug with toplevel methods. Allow RDoc in =begin rdoc/=end comments (experimental)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/code_objects.rb')
-rw-r--r--lib/rdoc/code_objects.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/rdoc/code_objects.rb b/lib/rdoc/code_objects.rb
index c48f5957b2..9ba351961b 100644
--- a/lib/rdoc/code_objects.rb
+++ b/lib/rdoc/code_objects.rb
@@ -404,6 +404,15 @@ module RDoc
@@all_classes = {}
@@all_modules = {}
+ def comment=(t)
+ if @c
+ fail t
+ else
+ @c = true
+ end
+ super
+ end
+
def TopLevel::reset
@@all_classes = {}
@@all_modules = {}