|
47 | 47 | <%- attributes.each do |attrib| -%> |
48 | 48 | <div id="<%= attrib.aref %>" class="method-detail"> |
49 | 49 | <div class="method-heading attribute-method-heading"> |
50 | | - <span class="method-name"><%= h attrib.name %></span> |
51 | | - <span class="attribute-access-type">[<%= attrib.rw %>]</span> |
| 50 | + <a href="#<%= attrib.aref %>" title="Link to this attribute"> |
| 51 | + <span class="method-name"><%= h attrib.name %></span> |
| 52 | + <span class="attribute-access-type">[<%= attrib.rw %>]</span> |
| 53 | + </a> |
52 | 54 | </div> |
53 | 55 |
|
54 | 56 | <div class="method-description"> |
|
78 | 80 | <%- if (call_seq = method.call_seq) then -%> |
79 | 81 | <%- call_seq.strip.split("\n").each_with_index do |call_seq, i| -%> |
80 | 82 | <div class="method-heading"> |
81 | | - <span class="method-callseq"> |
82 | | - <%= h(call_seq.strip. |
| 83 | + <a href="#<%= method.aref %>" title="Link to this method"> |
| 84 | + <span class="method-callseq"> |
| 85 | + <%= h(call_seq.strip. |
83 | 86 | gsub( /^\w+\./m, '')). |
84 | 87 | gsub(/(.*)[-=]>/, '\1→') %> |
85 | | - </span> |
| 88 | + </span> |
| 89 | + </a> |
86 | 90 | </div> |
87 | 91 | <%- end -%> |
88 | 92 | <%- elsif method.has_call_seq? then -%> |
89 | 93 | <div class="method-heading"> |
90 | | - <span class="method-name"><%= h method.name %></span> |
| 94 | + <a href="#<%= method.aref %>" title="Link to this method"> |
| 95 | + <span class="method-name"><%= h method.name %></span> |
| 96 | + </a> |
91 | 97 | </div> |
92 | 98 | <%- else -%> |
93 | 99 | <div class="method-heading"> |
94 | | - <span class="method-name"><%= h method.name %></span> |
95 | | - <span class="method-args"><%= h method.param_seq %></span> |
| 100 | + <a href="#<%= method.aref %>" title="Link to this method"> |
| 101 | + <span class="method-name"><%= h method.name %></span> |
| 102 | + <span class="method-args"><%= h method.param_seq %></span> |
| 103 | + </a> |
96 | 104 | </div> |
97 | 105 | <%- end -%> |
98 | 106 | </div> |
|
0 commit comments