Sha256: 21f0dc9e49fd34fbe0b5ddcd5e502b7727b42f759aee8d8adec9408629e34001

Contents?: true

Size: 395 Bytes

Versions: 2

Compression:

Stored size: 395 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('/')
  %>

  <h3 class='endpoint'>
    <span class="verb <%= route[:verb].downcase %>"><%= route[:verb] %></span>
    <%= formatted_route_path %>
  </h3>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

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