* [PATCH] class: deal with method.param_seq being nil
@ 2015-01-10 22:23 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2015-01-10 22:23 UTC (permalink / raw)
To: olddoc-public; +Cc: Eric Wong
---
lib/oldweb/class.rhtml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/oldweb/class.rhtml b/lib/oldweb/class.rhtml
index acf4bd7..9f8aec3 100644
--- a/lib/oldweb/class.rhtml
+++ b/lib/oldweb/class.rhtml
@@ -41,7 +41,9 @@ id="<%= visibility %>-<%= type %>-<%= section.aref %>-method-details">
%><pre id="<%= method.aref %>"><b><%
if method.call_seq %><%= h method.call_seq.strip %><%
else
- %><%= h method.name %> <%= h method.param_seq.strip %><%
+ %><%= h method.name %><%=
+ seq = method.param_seq
+ seq ? " #{h(seq.strip)}" : "" %><%
end %></b> <%= method_srclink(method) %></pre><%=
method.comment ? method.description.strip : nd %><%
if method.calls_super %>Calls superclass method<%=
--
EW
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-01-10 22:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-10 22:23 [PATCH] class: deal with method.param_seq being nil Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/olddoc.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).