mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc/class_module.rb (RDoc#merge): get rid of stack overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
232ced7342
commit
58a93ce441
2 changed files with 7 additions and 4 deletions
|
@ -1,4 +1,6 @@
|
|||
Fri Apr 2 22:28:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Sat Apr 3 00:03:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/rdoc/class_module.rb (RDoc#merge): get rid of stack overflow.
|
||||
|
||||
* lib/rdoc/parser/c.rb (RDoc#handle_method): see source files in
|
||||
source directory.
|
||||
|
|
|
@ -145,12 +145,13 @@ class RDoc::ClassModule < RDoc::Context
|
|||
# Merges +class_module+ into this ClassModule
|
||||
|
||||
def merge class_module
|
||||
if class_module.comment then
|
||||
comment = class_module.comment
|
||||
if comment then
|
||||
document = parse @comment
|
||||
|
||||
class_module.comment.parts.push(*document.parts)
|
||||
comment.parts.concat(document.parts)
|
||||
|
||||
@comment = class_module.comment
|
||||
@comment = comment
|
||||
end
|
||||
|
||||
class_module.each_attribute do |attr|
|
||||
|
|
Loading…
Reference in a new issue