|
22 | 22 | <% if namespace[:self] %> |
23 | 23 | <span><%= namespace[:name] %></span> |
24 | 24 | <% else %> |
25 | | - <a href="<%= namespace[:path] %>"><%= namespace[:name] %></a><span>::</span> |
| 25 | + <a href="<%= namespace[:path] %>"><%= namespace[:name] %></a><span class="separator">::</span> |
26 | 26 | <% end %> |
27 | 27 | </li> |
28 | 28 | <% end %> |
|
41 | 41 | <%- klass.each_section do |section, constants, attributes| %> |
42 | 42 | <span id="<%= section.legacy_aref %>" class="legacy-anchor"></span> |
43 | 43 | <section class="documentation-section anchor-link"> |
44 | | - <%- if section.title then %> |
| 44 | + <%- if section.title %> |
45 | 45 | <header class="documentation-section-title"> |
46 | 46 | <h2 id="<%= section.aref %>"> |
47 | 47 | <a href="#<%= section.aref %>"><%= section.title %></a> |
48 | 48 | </h2> |
49 | 49 | </header> |
50 | 50 | <%- end %> |
51 | 51 |
|
52 | | - <%- if section.comment then %> |
| 52 | + <%- if section.comment %> |
53 | 53 | <div> |
54 | 54 | <%= section.description %> |
55 | 55 | </div> |
56 | 56 | <%- end %> |
57 | 57 |
|
58 | | - <%- unless constants.empty? then %> |
| 58 | + <%- unless constants.empty? %> |
59 | 59 | <section class="constants-list"> |
60 | 60 | <header> |
61 | 61 | <h3 id="<%= section.aref %>-constants"><a href="#<%= section.aref %>-constants">Constants</a></h3> |
62 | 62 | </header> |
63 | 63 | <dl> |
64 | 64 | <%- constants.each do |const| %> |
65 | 65 | <dt id="<%= const.name %>"><%= const.name %></dt> |
66 | | - <%- if const.comment then %> |
| 66 | + <%- if const.comment %> |
67 | 67 | <dd> |
68 | | - <%- if const.mixin_from then %> |
| 68 | + <%- if const.mixin_from %> |
69 | 69 | <div class="mixin-from"> |
70 | 70 | Included from <a href="<%= klass.aref_to(const.mixin_from.path) %>"><%= const.mixin_from.full_name %></a> |
71 | 71 | </div> |
|
80 | 80 | </section> |
81 | 81 | <%- end %> |
82 | 82 |
|
83 | | - <%- unless attributes.empty? then %> |
| 83 | + <%- unless attributes.empty? %> |
84 | 84 | <section class="attribute-method-details method-section"> |
85 | 85 | <header> |
86 | 86 | <h3 id="<%= section.aref %>-attributes"><a href="#<%= section.aref %>-attributes">Attributes</a></h3> |
|
96 | 96 | </div> |
97 | 97 |
|
98 | 98 | <div class="method-description"> |
99 | | - <%- if attrib.mixin_from then %> |
| 99 | + <%- if attrib.mixin_from %> |
100 | 100 | <div class="mixin-from"> |
101 | 101 | <%= attrib.singleton ? "Extended" : "Included" %> from <a href="<%= klass.aref_to(attrib.mixin_from.path) %>"><%= attrib.mixin_from.full_name %></a> |
102 | 102 | </div> |
103 | 103 | <%- end %> |
104 | | - <%- if attrib.comment then %> |
| 104 | + <%- if attrib.comment %> |
105 | 105 | <%= attrib.description.strip %> |
106 | 106 | <%- else %> |
107 | 107 | <p class="missing-docs">(Not documented)</p> |
|
124 | 124 | <%- methods.each do |method| %> |
125 | 125 | <div id="<%= method.aref %>" class="method-detail anchor-link <%= method.is_alias_for ? "method-alias" : '' %>"> |
126 | 126 | <div class="method-header"> |
127 | | - <%- if (call_seq = method.call_seq) then %> |
| 127 | + <%- if (call_seq = method.call_seq) %> |
128 | 128 | <%- call_seq.strip.split("\n").each_with_index do |call_seq, i| %> |
129 | 129 | <div class="method-heading"> |
130 | 130 | <a href="#<%= method.aref %>" title="Link to this method"> |
|
136 | 136 | </a> |
137 | 137 | </div> |
138 | 138 | <%- end %> |
139 | | - <%- elsif method.has_call_seq? then %> |
| 139 | + <%- elsif method.has_call_seq? %> |
140 | 140 | <div class="method-heading"> |
141 | 141 | <a href="#<%= method.aref %>" title="Link to this method"> |
142 | 142 | <span class="method-name"><%= h method.name %></span> |
|
163 | 163 | </div> |
164 | 164 | <%- end %> |
165 | 165 |
|
166 | | - <%- unless method.skip_description? then %> |
| 166 | + <%- unless method.skip_description? %> |
167 | 167 | <div class="method-description"> |
168 | | - <%- if method.mixin_from then %> |
| 168 | + <%- if method.mixin_from %> |
169 | 169 | <div class="mixin-from"> |
170 | 170 | <%= method.singleton ? "Extended" : "Included" %> from <a href="<%= klass.aref_to(method.mixin_from.path) %>"><%= method.mixin_from.full_name %></a> |
171 | 171 | </div> |
172 | 172 | <%- end %> |
173 | | - <%- if method.comment then %> |
| 173 | + <%- if method.comment %> |
174 | 174 | <%= method.description.strip %> |
175 | 175 | <%- else %> |
176 | 176 | <p class="missing-docs">(Not documented)</p> |
177 | 177 | <%- end %> |
178 | | - <%- if method.calls_super then %> |
| 178 | + <%- if method.calls_super %> |
179 | 179 | <div class="method-calls-super"> |
180 | 180 | Calls superclass method |
181 | 181 | <%= |
|
187 | 187 | </div> |
188 | 188 | <%- end %> |
189 | 189 |
|
190 | | - <%- unless method.aliases.empty? then %> |
| 190 | + <%- unless method.aliases.empty? %> |
191 | 191 | <div class="aliases"> |
192 | 192 | Also aliased as: <%= method.aliases.map do |aka| |
193 | 193 | if aka.parent then # HACK lib/rexml/encodings |
|
199 | 199 | </div> |
200 | 200 | <%- end %> |
201 | 201 |
|
202 | | - <%- if method.is_alias_for then %> |
| 202 | + <%- if method.is_alias_for %> |
203 | 203 | <div class="aliases"> |
204 | 204 | Alias for: <a href="<%= klass.aref_to method.is_alias_for.path %>"><%= h method.is_alias_for.name %></a> |
205 | 205 | </div> |
|
0 commit comments