1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rdoc/parser/c.rb (RDoc#handle_method): see source files in

source directory.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-04-02 13:28:10 +00:00
parent 166fedb45d
commit 232ced7342
2 changed files with 7 additions and 3 deletions

View file

@ -393,7 +393,7 @@ class RDoc::Parser::C < RDoc::Parser
elsif @content =~ %r{Document-(?:class|module):\s+#{class_name}\s*?(?:<\s+[:,\w]+)?\n((?>.*?\*/))}m then
comment = $1
elsif @content =~ %r{((?>/\*.*?\*/\s+))
([\w\.\s]+\s* = \s+)?rb_define_(class|module).*?"(#{class_name})"}xm then
([\w\.\s]+\s* = \s+)?rb_define_(class|module).*?"(#{class_name})"}xm then # "
comment = $1
end
@ -611,8 +611,7 @@ class RDoc::Parser::C < RDoc::Parser
meth_obj.params = "(" + (1..p_count).map{|i| "p#{i}"}.join(", ") + ")"
end
if source_file and File.exist? source_file then
file_name = File.join(@file_dir, source_file)
if source_file and File.exist?(file_name = File.join(@file_dir, source_file)) then
body = (@@known_bodies[source_file] ||= File.read(file_name))
elsif source_file then
warn "unknown source file #{source_file}"