Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove a method's unmatched alias list once the method is added.

  • Loading branch information...
commit 3a2ae66ca6ea4b6b83d8905df92b080fdb1fc5b5 1 parent 9ef31cc
designingpatts authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/rdoc/code_objects.rb
View
6 lib/rdoc/code_objects.rb
@@ -318,9 +318,11 @@ def add_method(a_method)
unmatched_alias_list = @unmatched_alias_lists[a_method.name]
if unmatched_alias_list then
unmatched_alias_list.each do |unmatched_alias|
- add_alias(unmatched_alias)
- @aliases.delete(unmatched_alias)
+ add_alias unmatched_alias
+ @aliases.delete unmatched_alias
end
+
+ @unmatched_alias_lists.delete a_method.name
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.