From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, T_RP_MATCHES_RCVD,URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: olddoc-public@80x24.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 6C0401FA58; Sat, 10 Jan 2015 22:24:00 +0000 (UTC) From: Eric Wong To: olddoc-public@80x24.org Cc: Eric Wong Subject: [PATCH] class: deal with method.param_seq being nil Date: Sat, 10 Jan 2015 22:23:59 +0000 Message-Id: <1420928639-21764-1-git-send-email-normalperson@yhbt.net> X-Mailer: git-send-email 2.2.1.271.g3978422.dirty List-Id: --- 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"> %>
<%
         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 %> <%= method_srclink(method) %>
<%= method.comment ? method.description.strip : nd %><% if method.calls_super %>Calls superclass method<%= -- EW