Sha256: 27c38b120539d2aacab6c73c68e1d77402c6d0232c94bad14c5597eae499d981

Contents?: true

Size: 1.92 KB

Versions: 79

Compression:

Stored size: 1.92 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, !@item.attr_info) %>
    <% else %>
      <%= signature(@item, true, false, !@item.attr_info) %>
    <% end %>

    <% if @item.aliases.size > 0 %>
      (also: <%= @item.aliases.map {|o| h(o.name(true)) }.join(", ") %>)
    <% end %>
  </span>
  <% if object != @item.namespace %>
    <span class="note title not_defined_here">
      <%= @item.namespace.type == :class ? 'inherited' : (@item.scope == :class ? 'extended' : 'included') %>
      from <%= linkify @item, object.relative_path(@item.namespace) %>
    </span>
  <% end %>
  <% if @item.constructor? %>
    <span class="note title constructor">constructor</span>
  <% end %>
  <% if rw = @item.attr_info %>
    <% if !run_verifier([rw[:read]].compact).empty? && run_verifier([rw[:write]].compact).empty? %>
      <span class="note title readonly">readonly</span>
    <% end %>
    <% if !run_verifier([rw[:write]].compact).empty? && run_verifier([rw[:read]].compact).empty? %>
      <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?(:api) && @item.tag(:api).text == 'private' %><span class="private note title">private</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

79 entries across 76 versions & 10 rubygems

Version Path
yard-0.9.11 templates/default/module/html/item_summary.erb
yard-0.9.10 templates/default/module/html/item_summary.erb
yard-0.9.9 templates/default/module/html/item_summary.erb
etude_for_ruby-0.1.4 vendor/bundle/ruby/2.2.0/gems/yard-0.9.8/templates/default/module/html/item_summary.erb
etude_for_ruby-0.1.4 vendor/bundle/ruby/2.4.0/gems/yard-0.9.8/templates/default/module/html/item_summary.erb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/yard-0.9.8/templates/default/module/html/item_summary.erb
yard-0.9.8 templates/default/module/html/item_summary.erb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/templates/default/module/html/item_summary.erb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.7/templates/default/module/html/item_summary.erb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/templates/default/module/html/item_summary.erb
yard-0.9.7 templates/default/module/html/item_summary.erb
yard-0.9.6 templates/default/module/html/item_summary.erb
enumerable-statistics-1.0.1 yard/templates/mathjax/module/html/item_summary.erb
yard-0.9.5 templates/default/module/html/item_summary.erb
yard-0.9.4 templates/default/module/html/item_summary.erb
yard-0.9.3 templates/default/module/html/item_summary.erb
yard-0.9.2 templates/default/module/html/item_summary.erb
yard-0.9.1 templates/default/module/html/item_summary.erb
yard-0.9.0 templates/default/module/html/item_summary.erb