# <%= klass.type %> <%= klass.full_name %> [](#<%= klass.aref.strip %>) [](#top) <%= h klass.description %> <% klass.each_section do |section, constants, attributes| %> <% if section.title %>## <%= section.title.strip %> <% end %> <% if section.comment %> <%=h section.description %><% end%> <% unless klass.constants.empty? %> ## Constants | Name | Description | | ---- | ----------- | <% klass.constants.each do |const| %> | **<%= const.name %>[](#<%= const.name %>)** | <% unless const.description.empty? %> <%= h(const.description).rstrip %> <%else%> Not documented <% end %> | <% end %> <% end %> <% unless attributes&.empty? %> ## Attributes <% attributes.each do |attr| %> ### <%= attr.name %>[<%= attr.rw %>] [](#<%= attr.aref.strip %>) <% if attr.comment %> <%= h(attr.description) %> <%else%> Not documented <% end %> <% end %> <% end %> <% klass.methods_by_type(section).each do |type, visibilities| %> <% next if visibilities.empty? %> <% visibilities.each do |visibility, methods| %> <% next if methods.empty? %> ## <%= visibility.capitalize %> <%= type.capitalize %> Methods <% methods.each do |method|%> ### <%= method.name %><%= method.param_seq %> [](#<%= method.aref %>) <% if method.comment %> <%= h(method.description) %> <% else %> Not documented <%end%> <% end %> <% end %> <% end %> <% end %>