|
101 | 101 | <div id="<%= method.aref %>" class="method-detail <%= method.is_alias_for ? "method-alias" : '' %>">
|
102 | 102 | <div class="method-header">
|
103 | 103 | <%- if (call_seq = method.call_seq) then -%>
|
104 |
| - <%- call_seq.strip.split("\n").each_with_index do |call_seq, i| -%> |
105 |
| - <div class="method-heading"> |
106 |
| - <span class="method-callseq"> |
107 |
| - <%= h(call_seq.strip. |
108 |
| - gsub( /^\w+\./m, '')). |
109 |
| - gsub(/(.*)[-=]>/, '\1→') %> |
110 |
| - </span> |
111 |
| - <%- if i == 0 and method.token_stream then -%> |
112 |
| - <div class="method-controls"> |
113 |
| - <details class="method-source-toggle"> |
114 |
| - <summary>Source</summary> |
115 |
| - </details> |
116 |
| - </div> |
| 104 | + <%- call_seq.strip.split("\n").each_with_index do |call_seq, i| -%> |
| 105 | + <div class="method-heading"> |
| 106 | + <span class="method-callseq"> |
| 107 | + <%= h(call_seq.strip. |
| 108 | + gsub( /^\w+\./m, '')). |
| 109 | + gsub(/(.*)[-=]>/, '\1→') %> |
| 110 | + </span> |
| 111 | + </div> |
117 | 112 | <%- end -%>
|
118 |
| - </div> |
119 |
| - <%- end -%> |
120 | 113 | <%- elsif method.has_call_seq? then -%>
|
121 |
| - <div class="method-heading"> |
122 |
| - <span class="method-name"><%= h method.name %></span> |
123 |
| - </div> |
| 114 | + <div class="method-heading"> |
| 115 | + <span class="method-name"><%= h method.name %></span> |
| 116 | + </div> |
124 | 117 | <%- else -%>
|
125 |
| - <div class="method-heading"> |
126 |
| - <span class="method-name"><%= h method.name %></span> |
127 |
| - <span class="method-args"><%= h method.param_seq %></span> |
128 |
| - <%- if method.token_stream then -%> |
129 |
| - <div class="method-controls"> |
130 |
| - <details class="method-source-toggle"> |
131 |
| - <summary>Source</summary> |
132 |
| - </details> |
| 118 | + <div class="method-heading"> |
| 119 | + <span class="method-name"><%= h method.name %></span> |
| 120 | + <span class="method-args"><%= h method.param_seq %></span> |
133 | 121 | </div>
|
134 |
| - <%- end -%> |
135 |
| - </div> |
136 | 122 | <%- end -%>
|
137 | 123 | </div>
|
138 | 124 |
|
| 125 | + <%- if method.token_stream -%> |
| 126 | + <div class="method-controls"> |
| 127 | + <details class="method-source-toggle"> |
| 128 | + <summary>Source</summary> |
| 129 | + </details> |
| 130 | + </div> |
| 131 | + <%- end -%> |
| 132 | + |
139 | 133 | <%- unless method.skip_description? then -%>
|
140 | 134 | <div class="method-description">
|
141 | 135 | <%- if method.token_stream then -%>
|
|
0 commit comments