Sha256: 38afa9bbe73d8d5d6930eebde510a68c6c5a189efc25cfce42baf8413acde7e7

Contents?: true

Size: 1.14 KB

Versions: 5

Compression:

Stored size: 1.14 KB

Contents

<% n = 1 %>
<dl class="box">
  <% if CodeObjects::ClassObject === object && object.superclass %>
    <dt class="r<%=n%>">Inherits:</dt>
    <dd class="r<%=n%>">
      <span class="inheritName"><%= linkify object.superclass %></span>
      <% if object.superclass.name != :BasicObject %>
        <ul class="fullTree">
          <li><%= linkify P(:Object) %></li>
          <% object.inheritance_tree.reverse.each_with_index do |obj, i| %>
            <li class="next"><%= obj == object ? obj.path : linkify(obj) %></li>
          <% end %>
        </ul>
        <a href="#" class="inheritanceTree">show all</a>
      <% end %>
      </dd>
    <% n = 2 %>
  <% end %>
  <% [[:class, "Extends"], [:instance, "Includes"]].each do |scope, name| %>
    <% if (mix = object.mixins(scope)).size > 0 %>
      <dt class="r<%=n%>"><%= name %>:</dt>
      <dd class="r<%=n%>"><%= mix.sort_by {|o| o.path }.map {|o| linkify(o) }.join(", ") %></dd>
      <% n = n == 2 ? 1 : 2 %>
    <% end %>
  <% end %>
  <% unless object.root? %>
    <dt class="r<%=n%> last">Defined in:</dt>
    <dd class="r<%=n%> last"><%= erb(:defines) %></dd>
  <% end %>
</dl>
<div class="clear"></div>

Version data entries

5 entries across 5 versions & 1 rubygems

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