Sha256: 91ad6c3666a87310c912e841b1568e5f64c93f88a99382353055b06ac5087c52

Contents?: true

Size: 678 Bytes

Versions: 13

Compression:

Stored size: 678 Bytes

Contents

<% @props[:routes].each do |route| %>
  <%
    formatted_route_path = route[:path].split('/').map do |fragment|
      is_id = fragment =~ /^\:[\w|_]+/
      "<span #{'class="id-fragment"' if is_id}>#{fragment}</span>"
    end.join('/')
  %>

  <div class='endpoint__path'>
    <span class="method-details__verb <%= route[:verb].downcase %>">
      <%= route[:verb] %>
    </span>

    <%= formatted_route_path %>
  </div>

  <% if object.has_tag?('beta') && api_options["use_beta_banner"] %>
    <p class='endpoint__beta-banner'>
      BETA: This API endpoint is not finalized, and there could be breaking
      changes before its final release.
    </p>
  <% end %>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
yard-api-1.1.2 templates/api/method_details/html/method_signature.erb
yard-api-1.1.1 templates/api/method_details/html/method_signature.erb
yard-api-1.1.0 templates/api/method_details/html/method_signature.erb
yard-api-1.0.1 templates/api/method_details/html/method_signature.erb
yard-api-1.0.0 templates/api/method_details/html/method_signature.erb
yard-api-0.3.7 templates/api/method_details/html/method_signature.erb
yard-api-0.3.6 templates/api/method_details/html/method_signature.erb
yard-api-0.3.5 templates/api/method_details/html/method_signature.erb
yard-api-0.3.4 templates/api/method_details/html/method_signature.erb
yard-api-0.3.3 templates/api/method_details/html/method_signature.erb
yard-api-0.3.2 templates/api/method_details/html/method_signature.erb
yard-api-0.3.1 templates/api/method_details/html/method_signature.erb
yard-api-0.3.0 templates/api/method_details/html/method_signature.erb