Sha256: caa34589a4e28b0b6885f8597f1435247704bec0f0bfde14b65d5464c2c3bc54

Contents?: true

Size: 649 Bytes

Versions: 1

Compression:

Stored size: 649 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="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

1 entries across 1 versions & 1 rubygems

Version Path
yard-api-0.2.3 templates/api/method_details/html/method_signature.erb