summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rdoc/generators/html_generator.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/rdoc/generators/html_generator.rb b/lib/rdoc/generators/html_generator.rb
index c5a12eee39..b5e8f24e43 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