diff options
Diffstat (limited to 'lib/rdoc/generator/template')
-rw-r--r-- | lib/rdoc/generator/template/darkfish/classpage.rhtml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/rdoc/generator/template/darkfish/classpage.rhtml b/lib/rdoc/generator/template/darkfish/classpage.rhtml index 72b86ec6a7..7d0cad0eed 100644 --- a/lib/rdoc/generator/template/darkfish/classpage.rhtml +++ b/lib/rdoc/generator/template/darkfish/classpage.rhtml @@ -134,7 +134,7 @@ <% end %> <div id="classindex-section" class="section project-section"> - <h3 class="section-header">Class Index + <h3 class="section-header">Class/Module Index <span class="search-toggle"><img src="<%= rel_prefix %>/images/find.png" height="16" width="16" alt="[+]" title="show/hide quicksearch" /></span></h3> @@ -225,16 +225,22 @@ <div id="<%= method.html_name %>-method" class="method-detail <%= method.is_alias_for ? "method-alias" : '' %>"> <a name="<%= h method.aref %>"></a> - <div class="method-heading"> <% if method.call_seq %> - <span class="method-callseq"><%= method.call_seq.strip.gsub(/->/, '→').gsub( /^\w.+\./m, '') %></span> + <% method.call_seq.strip.split("\n").each_with_index do |call_seq, i| %> + <div class="method-heading"> + <span class="method-callseq"><%= call_seq.strip.gsub(/->/, '→').gsub( /^\w.+\./m, '') %></span> + <% if i == 0 %> <span class="method-click-advice">click to toggle source</span> + <% end %> + </div> + <% end %> <% else %> + <div class="method-heading"> <span class="method-name"><%= h method.name %></span><span class="method-args"><%= method.params %></span> <span class="method-click-advice">click to toggle source</span> - <% end %> </div> + <% end %> <div class="method-description"> <% if method.comment %> |