<% unless methods.empty? %>
  <h2><%= title %></h2>
  <% methods.each do |method| %>
    <div class="entry-detail" id="<%= method.html_id %>">
      <div class="signature">
        <%= method.abstract? ? "abstract " : "" %>
        <%= method.kind %><strong><%= method.name %></strong><%= method.args_to_html %>

        <a class="method-permalink" href="<%= method.anchor %>">#</a>
      </div>
      <% if doc = method.formatted_doc %>
        <div class="doc"><%= doc %></div>
      <% end %>
      <br/>
      <div>
        <% if source_link = method.source_link %>
          [<a href="<%= source_link %>" target="_blank">View source</a>]
        <% end %>
      </div>
    </div>
  <% end %>
<% end %>
