Sha256: 042207d45ac6a21c972ef1b63ea1eb823326b946b1f4df30082c28e01026bdbf

Contents?: true

Size: 1.23 KB

Versions: 17

Compression:

Stored size: 1.23 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, "Extended by"], [:instance, "Includes"]].each do |scope, name| %>
    <% if (mix = run_verifier(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 %>
  <% if (mixed_into = mixed_into(object)).size > 0 %>
    <dt class="r<%=n%>">Included in:</dt>
    <dd class="r<%=n%>"><%= mixed_into.sort_by {|o| o.path }.map {|o| linkify(o) }.join(", ") %></dd>
    <% n = n == 2 ? 1 : 2 %>
  <% end %>
</dl>

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
shoulda-matchers-3.1.3 doc_config/yard/templates/default/module/html/box_info.erb
shoulda-matchers-4.0.0.rc1 doc_config/yard/templates/default/module/html/box_info.erb
shoulda-matchers-3.1.2 doc_config/yard/templates/default/module/html/box_info.erb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/shoulda-matchers-2.8.0/doc_config/yard/templates/default/module/html/box_info.erb
shoulda-matchers-3.1.1 doc_config/yard/templates/default/module/html/box_info.erb
shoulda-matchers-3.1.0 doc_config/yard/templates/default/module/html/box_info.erb
shoulda-matchers-3.0.1 doc_config/yard/templates/default/module/html/box_info.erb
shoulda-matchers-3.0.0 doc_config/yard/templates/default/module/html/box_info.erb
shoulda-matchers-3.0.0.rc1 doc_config/yard/templates/default/module/html/box_info.erb
shoulda-matchers-2.8.0 doc_config/yard/templates/default/module/html/box_info.erb
shoulda-matchers-2.8.0.rc2 doc_config/yard/templates/default/module/html/box_info.erb
shoulda-matchers-2.8.0.rc1 doc_config/yard/templates/default/module/html/box_info.erb
shoulda-matchers-2.7.0 doc_config/yard/templates/default/module/html/box_info.erb
shoulda-matchers-2.6.2 doc_config/yard/templates/default/module/html/box_info.erb
mcmire-shoulda-matchers-2.6.2.docs.1 doc_config/yard/templates/default/module/html/box_info.erb
mcmire-shoulda-matchers-2.6.1.docs.1 doc_config/yard/templates/default/module/html/box_info.erb
mcmire-shoulda-matchers-2.5.0 doc_config/yard/templates/default/module/html/box_info.erb