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

<%= label %> methods inherited from <%= ancestor.kind %> <%= ancestor.full_name %>

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