diff options
Diffstat (limited to 'lib/rdoc/generator/template/darkfish/class.rhtml')
-rw-r--r-- | lib/rdoc/generator/template/darkfish/class.rhtml | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/lib/rdoc/generator/template/darkfish/class.rhtml b/lib/rdoc/generator/template/darkfish/class.rhtml index 596764ddc5..5d7b6a1b80 100644 --- a/lib/rdoc/generator/template/darkfish/class.rhtml +++ b/lib/rdoc/generator/template/darkfish/class.rhtml @@ -25,9 +25,9 @@ <%= klass.description %> </section> - <% klass.each_section do |section, constants, attributes| %> + <%- klass.each_section do |section, constants, attributes| -%> <section id="<%= section.aref %>" class="documentation-section"> - <% if section.title then %> + <%- if section.title then -%> <header class="documentation-section-title"> <h2> <%= section.title %> @@ -36,39 +36,39 @@ <a href="#top">↑ top</a> </span> </header> - <% end %> + <%- end -%> - <% if section.comment then %> + <%- if section.comment then -%> <div> <%= section.description %> </div> - <% end %> + <%- end -%> - <% unless constants.empty? then %> + <%- unless constants.empty? then -%> <section class="constants-list"> <header> <h3>Constants</h3> </header> <dl> - <% constants.each do |const| %> + <%- constants.each do |const| -%> <dt id="<%= const.name %>"><%= const.name %> - <% if const.comment then %> + <%- if const.comment then -%> <dd><%= const.description.strip %> - <% else %> + <%- else -%> <dd class="missing-docs">(Not documented) - <% end %> - <% end %> + <%- end -%> + <%- end -%> </dl> </section> - <% end %> + <%- end -%> - <% unless attributes.empty? then %> + <%- unless attributes.empty? then -%> <section class="attribute-method-details" class="method-section"> <header> <h3>Attributes</h3> </header> - <% attributes.each do |attrib| %> + <%- attributes.each do |attrib| -%> <div id="<%= attrib.aref %>" class="method-detail"> <div class="method-heading attribute-method-heading"> <span class="method-name"><%= h attrib.name %></span><span @@ -76,18 +76,18 @@ </div> <div class="method-description"> - <% if attrib.comment then %> + <%- if attrib.comment then -%> <%= attrib.description.strip %> - <% else %> + <%- else -%> <p class="missing-docs">(Not documented) - <% end %> + <%- end -%> </div> </div> - <% end %> + <%- end -%> </section> - <% end %> + <%- end -%> - <% klass.methods_by_type(section).each do |type, visibilities| + <%- klass.methods_by_type(section).each do |type, visibilities| next if visibilities.empty? visibilities.each do |visibility, methods| next if methods.empty? %> @@ -96,38 +96,38 @@ <h3><%= visibility.to_s.capitalize %> <%= type.capitalize %> Methods</h3> </header> - <% methods.each do |method| %> + <%- methods.each do |method| -%> <div id="<%= method.aref %>" class="method-detail <%= method.is_alias_for ? "method-alias" : '' %>"> - <% if (call_seq = method.call_seq) then %> - <% call_seq.strip.split("\n").each_with_index do |call_seq, i| %> + <%- if (call_seq = method.call_seq) then -%> + <%- call_seq.strip.split("\n").each_with_index do |call_seq, i| -%> <div class="method-heading"> <span class="method-callseq"> <%= h(call_seq.strip. gsub( /^\w+\./m, '')). gsub(/(.*)[-=]>/, '\1→') %> </span> - <% if i == 0 and method.token_stream then %> + <%- if i == 0 and method.token_stream then -%> <span class="method-click-advice">click to toggle source</span> - <% end %> + <%- end -%> </div> - <% end %> - <% else %> + <%- end -%> + <%- else -%> <div class="method-heading"> <span class="method-name"><%= h method.name %></span><span class="method-args"><%= h method.param_seq %></span> - <% if method.token_stream then %> + <%- if method.token_stream then -%> <span class="method-click-advice">click to toggle source</span> - <% end %> + <%- end -%> </div> - <% end %> + <%- end -%> <div class="method-description"> - <% if method.comment then %> + <%- if method.comment then -%> <%= method.description.strip %> - <% else %> + <%- else -%> <p class="missing-docs">(Not documented) - <% end %> - <% if method.calls_super then %> + <%- end -%> + <%- if method.calls_super then -%> <div class="method-calls-super"> Calls superclass method <%= @@ -135,16 +135,16 @@ method.formatter.link(method.superclass_method.full_name, method.superclass_method.full_name) : nil %> </div> - <% end %> + <%- end -%> - <% if method.token_stream then %> + <%- if method.token_stream then -%> <div class="method-source-code" id="<%= method.html_name %>-source"> <pre><%= method.markup_code %></pre> </div> - <% end %> + <%- end -%> </div> - <% unless method.aliases.empty? then %> + <%- unless method.aliases.empty? then -%> <div class="aliases"> Also aliased as: <%= method.aliases.map do |aka| if aka.parent then # HACK lib/rexml/encodings @@ -154,19 +154,19 @@ end end.join ", " %> </div> - <% end %> + <%- end -%> - <% if method.is_alias_for then %> + <%- if method.is_alias_for then -%> <div class="aliases"> Alias for: <a href="<%= klass.aref_to method.is_alias_for.path %>"><%= h method.is_alias_for.name %></a> </div> - <% end %> + <%- end -%> </div> - <% end %> + <%- end -%> </section> - <% end + <%- end end %> </section> -<% end %> +<%- end -%> </main> |