diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-01 07:45:16 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-01 07:45:16 +0000 |
commit | 46580b51477355fece514573c88cb67030f4a502 (patch) | |
tree | 779c1a64466643461b3daa4cd9a3548b84f0fd55 /lib/rdoc/parser/simple.rb | |
parent | 9b40cdfe8c973a061c5683ad78c283b9ddb8b2e9 (diff) | |
download | ruby-46580b51477355fece514573c88cb67030f4a502.tar.gz |
Import RDoc 2.5
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/parser/simple.rb')
-rw-r--r-- | lib/rdoc/parser/simple.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rdoc/parser/simple.rb b/lib/rdoc/parser/simple.rb index cdfe686718..9072667f89 100644 --- a/lib/rdoc/parser/simple.rb +++ b/lib/rdoc/parser/simple.rb @@ -1,5 +1,3 @@ -require 'rdoc/parser' - ## # Parse a non-source file. We basically take the whole thing as one big # comment. If the first character in the file is '#', we strip leading pound @@ -23,10 +21,11 @@ class RDoc::Parser::Simple < RDoc::Parser end ## - # Extract the file contents and attach them to the toplevel as a comment + # Extract the file contents and attach them to the TopLevel as a comment def scan @top_level.comment = remove_private_comments(@content) + @top_level.parser = self.class @top_level end |