diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-31 02:21:07 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-31 02:21:07 +0000 |
commit | 53bdd18c259eba6ad17c4a6ec29c7ad2724786b5 (patch) | |
tree | 7b6764adb66c05a7164468658a13f4ca8ed528dc /lib/rdoc/generators | |
parent | b39e8a4407b33a038990682753bf3fea0605fb77 (diff) | |
download | ruby-53bdd18c259eba6ad17c4a6ec29c7ad2724786b5.tar.gz ruby-53bdd18c259eba6ad17c4a6ec29c7ad2724786b5.tar.xz ruby-53bdd18c259eba6ad17c4a6ec29c7ad2724786b5.zip |
Fix problem with private alias to public method
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/generators')
-rw-r--r-- | lib/rdoc/generators/html_generator.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/rdoc/generators/html_generator.rb b/lib/rdoc/generators/html_generator.rb index c5a12eee3..b5e8f24e4 100644 --- a/lib/rdoc/generators/html_generator.rb +++ b/lib/rdoc/generators/html_generator.rb @@ -412,14 +412,18 @@ module Generators row["aref"] = m.aref row["visibility"] = m.visibility.to_s - unless m.aliases.empty? - row["aka"] = m.aliases.map do |other| - { + alias_names = [] + m.aliases.each do |other| + if other.viewer # won't be if the alias is private + alias_names << { 'name' => other.name, 'aref' => other.viewer.as_href(path) } end end + unless alias_names.empty? + row["aka"] = alias_names + end if @options.inline_source code = m.source_code |