<% method_groups = methods.group_by { |method| method.name } %> <% unless method_groups.empty? %>

<%= label %> methods inherited from <%= ancestor.kind %> <%= ancestor.link_from(type) %>

<% i = 0 %> <% method_groups.each do |method_name, methods| %> <%= methods.map { |method| method.name + method.args_to_html(:highlight) } .join("
") %>
<%= method_name %>
<%= ", " if i != method_groups.size - 1 %> <% i += 1 %> <% end %> <% end %>