<% if object.respond_to?(:subclass) %> <% if object.superclass %> <%= layout_section('Superclass') %>

<%= auto_link_code(object.superclass, :name => :long) %>

<%= end_layout_section %> <% end %> <% if object.subclasses? %> <%= layout_section('Subclasses') %>

<%= object.subclasses.sort!.map { |s| auto_link_code(s, :name => :long) }.join(', ') %>

<%= end_layout_section %> <% end %> <% end %> <% if object.included_mixins? %> <%= layout_section('Includes', :mixins) %>

<%= object.included_mixins.sort!.map { |m| auto_link_code(m, :name => :long) }.join(', ') %>

<%= end_layout_section %> <% end %>