lib/yard/code_objects/method_object.rb in yard-0.9.25 vs lib/yard/code_objects/method_object.rb in yard-0.9.26

- old
+ new

@@ -143,10 +143,10 @@ meths = namespace.meths(:all => true) meths.find {|m| m.path != path && m.name == name && m.scope == scope } end # Returns all alias names of the object - # @return [Array<Symbol>] the alias names + # @return [Array<MethodObject>] the alias names def aliases list = [] return list unless namespace.is_a?(NamespaceObject) namespace.aliases.each do |o, aname| list << o if aname == name && o.scope == scope