|
72 | 72 | <%- attributes.each do |attrib| -%>
|
73 | 73 | <div id="<%= attrib.aref %>" class="method-detail">
|
74 | 74 | <div class="method-heading attribute-method-heading">
|
75 |
| - <span class="method-name"><%= h attrib.name %></span><span |
76 |
| - class="attribute-access-type">[<%= attrib.rw %>]</span> |
| 75 | + <a href="#<%= attrib.aref %>" title="Link to this attribute"> |
| 76 | + <span class="method-name"><%= h attrib.name %></span> |
| 77 | + <span class="attribute-access-type">[<%= attrib.rw %>]</span> |
| 78 | + </a> |
77 | 79 | </div>
|
78 | 80 |
|
79 | 81 | <div class="method-description">
|
|
103 | 105 | <%- if (call_seq = method.call_seq) then -%>
|
104 | 106 | <%- call_seq.strip.split("\n").each_with_index do |call_seq, i| -%>
|
105 | 107 | <div class="method-heading">
|
106 |
| - <span class="method-callseq"> |
107 |
| - <%= h(call_seq.strip. |
| 108 | + <a href="#<%= method.aref %>" title="Link to this method"> |
| 109 | + <span class="method-callseq"> |
| 110 | + <%= h(call_seq.strip. |
108 | 111 | gsub( /^\w+\./m, '')).
|
109 | 112 | gsub(/(.*)[-=]>/, '\1→') %>
|
110 |
| - </span> |
| 113 | + </span> |
| 114 | + </a> |
111 | 115 | </div>
|
112 | 116 | <%- end -%>
|
113 | 117 | <%- elsif method.has_call_seq? then -%>
|
114 | 118 | <div class="method-heading">
|
115 |
| - <span class="method-name"><%= h method.name %></span> |
| 119 | + <a href="#<%= method.aref %>" title="Link to this method"> |
| 120 | + <span class="method-name"><%= h method.name %></span> |
| 121 | + </a> |
116 | 122 | </div>
|
117 | 123 | <%- else -%>
|
118 | 124 | <div class="method-heading">
|
119 |
| - <span class="method-name"><%= h method.name %></span> |
120 |
| - <span class="method-args"><%= h method.param_seq %></span> |
| 125 | + <a href="#<%= method.aref %>" title="Link to this method"> |
| 126 | + <span class="method-name"><%= h method.name %></span> |
| 127 | + <span class="method-args"><%= h method.param_seq %></span> |
| 128 | + </a> |
121 | 129 | </div>
|
122 | 130 | <%- end -%>
|
123 | 131 | </div>
|
|
0 commit comments