mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix problem with private alias to public method
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a7f0e3a002
commit
394f0d42b1
2 changed files with 13 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue