<% object.inheritance_tree(true)[1..-1].each do |superclass| %>
  <% next if superclass.is_a?(YARD::CodeObjects::Proxy) %>
  <% consts = run_verifier superclass.constants(:included => false, :inherited => false) %>
  <% consts.reject! {|m| object.child(:scope => :class, :name => m.name) != nil } %>
  <% next if consts.size == 0 %>
  <h3 class="inherited">Constants <%= superclass.type == :class ? 'inherited' : 'included' %> from <%= linkify superclass %></h3>
  <p class="inherited"><%= consts.sort_by {|o| o.name.to_s }.map {|m| linkify(m, m.name) }.join(", ") %></p>
<% end %>