diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-24 06:45:50 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-24 06:45:50 +0000 |
commit | 3df59b04c2563b0a822033ed1b96d46cae98f824 (patch) | |
tree | 86b1f80309a62d1dedb7ab8c839307b886c9ec9a /lib/rdoc/parsers/parse_simple.rb | |
parent | a2efd9a96d397d8195b5a1529b72ed684a152938 (diff) | |
download | ruby-3df59b04c2563b0a822033ed1b96d46cae98f824.tar.gz ruby-3df59b04c2563b0a822033ed1b96d46cae98f824.tar.xz ruby-3df59b04c2563b0a822033ed1b96d46cae98f824.zip |
* document updates - [ruby-core:04296], [ruby-core:04301],
[ruby-core:04302], [ruby-core:04307]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/parsers/parse_simple.rb')
-rw-r--r-- | lib/rdoc/parsers/parse_simple.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/rdoc/parsers/parse_simple.rb b/lib/rdoc/parsers/parse_simple.rb index b01104574..3f1a54696 100644 --- a/lib/rdoc/parsers/parse_simple.rb +++ b/lib/rdoc/parsers/parse_simple.rb @@ -30,8 +30,12 @@ module RDoc def scan # @body.gsub(/^(\s\n)+/, '') - @top_level.comment = @body + @top_level.comment = remove_private_comments(@body) @top_level end + + def remove_private_comments(comment) + comment.gsub(/^--.*?^\+\+/m, '').sub(/^--.*/m, '') + end end end |