">
<% if method.call_seq then %>
<% method.call_seq.strip.split("\n").each_with_index do |call_seq, i| %>
<%= h(call_seq.strip.
gsub( /^\w+\./m, '')).
gsub(/(.*)[-=]>/, '\1→') %>
<% if i == 0 then %>
click to toggle source
<% end %>
<% end %>
<% else %>
<%= h method.name %><%= method.param_seq %>
click to toggle source
<% end %>
<% if method.comment then %>
<%= method.description.strip %>
<% else %>
(Not documented)
<% end %>
<% if method.token_stream then %>
<%= method.markup_code %>
<% end %>
<% unless method.aliases.empty? then %>
Also aliased as: <%= method.aliases.map do |aka|
if aka.parent then # HACK lib/rexml/encodings
%{
#{h aka.name}}
else
h aka.name
end
end.join ", " %>
<% end %>
<% if method.is_alias_for then %>
<% end %>
<% end %>