<% n = 1 %>
<% if CodeObjects::ClassObject === object && object.superclass %>
Inherits:
<%= linkify object.superclass %> <% if object.superclass.name != :BasicObject %> show all <% end %>
<% n = 2 %> <% end %> <% [[:class, "Extended by"], [:instance, "Includes"]].each do |scope, name| %> <% if (mix = object.mixins(scope)).size > 0 %>
<%= name %>:
<%= mix.sort_by {|o| o.path }.map {|o| linkify(o) }.join(", ") %>
<% n = n == 2 ? 1 : 2 %> <% end %> <% end %> <% if (mixed_into = mixed_into(object)).size > 0 %>
Included in:
<%= mixed_into.sort_by {|o| o.path }.map {|o| linkify(o) }.join(", ") %>
<% n = n == 2 ? 1 : 2 %> <% end %> <% unless object.root? %>
Defined in:
<%= erb(:defines) %>
<% end %>