Sha256: fe1b9f6fb4d9885bdd7e6d0118b09a10c83819e77a636bb6a276e543c20d3b67

Contents?: true

Size: 1.37 KB

Versions: 4

Compression:

Stored size: 1.37 KB

Contents

<li class="<%= @item.visibility %> <%= @item.has_tag?(:deprecated) ? 'deprecated' : '' %>">
  <span class="summary_signature">
    <% if @item.tags(:overload).size == 1 %>
      <%= signature(@item.tag(:overload), true, false) %>
    <% else %>
      <%= signature(@item, true, false) %>
    <% end %>

    <% if @item.aliases.size > 0 %>
      (also: <%= @item.aliases.map {|o| h(o.name(true)) }.join(", ") %>)
    <% end %>
  </span>
  <% if @item.constructor? %>
    <span class="note title constructor">constructor</span>
  <% end %>
  <% if rw = @item.namespace.attributes[@item.scope][@item.name] %>
    <% if rw[:read] && !rw[:write] %><span class="note title readonly">readonly</span><% end %>
    <% if rw[:write] && !rw[:read] %><span class="note title writeonly">writeonly</span><% end %>
  <% end %>
  <% if @item.visibility != :public %><span class="note title <%= @item.visibility %>"><%= @item.visibility %></span><% end %>
  <% if @item.has_tag?(:abstract) %><span class="abstract note title">Abstract</span><% end %>
  <% if @item.has_tag?(:deprecated) %><span class="deprecated note title">Deprecated</span><% end %>

  <% if @item.has_tag?(:deprecated) %>
    <span class="summary_desc"><strong>Deprecated.</strong> <%= htmlify_line @item.tag(:deprecated).text %></span>
  <% else %>
    <span class="summary_desc"><%= htmlify_line docstring_summary(@item) %></span>
  <% end %>
</li>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yard-0.5.2 templates/default/module/html/item_summary.erb
yard-0.5.1p1 templates/default/module/html/item_summary.erb
yard-0.5.1 templates/default/module/html/item_summary.erb
yard-0.5.0 templates/default/module/html/item_summary.erb