<% d = @doc_instance %> <%= include "partials/title", :object => @doc_instance %> <%= include "partials/description", :object => @doc_instance %> <%= include "partials/namespaces", :object => @doc_instance %> <%= include "partials/classes", :object => @doc_instance %> <%= include "partials/class_relationships", :object => @doc_instance %> <%= include "partials/related_utilities", :object => @doc_instance %> <%= include "partials/constructor", :object => @doc_instance %> <% types = [ [:class_methods, 'Class methods'], [:class_properties, 'Class properties'], [:instance_methods, 'Instance methods'], [:instance_properties, 'Instance properties'], [:constants, 'Constants'] ].each do |a| %> <% method, title = a %> <% methods = @doc_instance.send(method) %> <% unless methods.empty? %> <%= layout_section(title, method) %> <%= end_layout_section %> <% end %> <% end %>