@node <%= @v['class']['full_name'].gsub(/::/, '-') %>
@chapter <%= @v['class']["classmod"] %> <%= @v['class']['full_name'] %>
@c TODO: which file did this class come from?

<% if @v['class']["parent"] and @v['class']['par_url'] %>
Inherits <%= href @v['class']["par_url"], @v['class']["parent"] %><% end %>

<%= @v['class']["description"] %>

<% if @v['class']["includes"] %>
Includes
<%   @v['class']["includes"].each do |include| %>
* <%=  href include["aref"], include["name"] %>
<%   end # @v['class']["includes"] %>
<% end %>

<% if @v['class']["sections"] %>
<%   @v['class']["sections"].each do |section| %>
<%     if section["attributes"] %>
Attributes
<%       section["attributes"].each do |attributes| %>
* <%=      attributes["name"] %> <%= attributes["rw"] %> <%= attributes["a_desc"] %>
<%       end # section["attributes"] %>
<%     end %>
<%   end %>

@c @v['class'] comes from RDoc::Generator::Context.build_indicies
<%   @v['class']["sections"].each do |section| %>
<%     if section["method_list"] %>
Methods
@menu
<%     section["method_list"].each do |method_list| %>
<%       (method_list["methods"] || []).each do |method| %>
@c here we get a *ton* of repeats... no idea why.
* <%= @v['class']['full_name'].gsub(/::/, '-') %><%= hash_or_dot method_list %><%= method['name'] %>::<% end %>
<% end %>
@end menu

<%     section["method_list"].each do |method_list| %>
<%       (method_list["methods"] || []).uniq.each do |method| %>
<%=        TexinfoTemplate.new(@v.merge({'method' => method, 'list' => method_list}),
                               'method.texinfo.erb').render %><% end %>
<%     end # section["method_list"] %>
<%   end %>
<% end # @v['class']["sections"] %>
<% end %>

Generated using scpaste by Phil Hagelberg at Wed Apr 2 15:21:22 2008.