From 86258412fbd2691dfb5150df3865d1b24a25f1b6 Mon Sep 17 00:00:00 2001 From: Gonzalo Garramuno Date: Thu, 3 May 2007 22:55:38 +0000 Subject: [PATCH] Overloaded parameters printed for static functions was incorrect. Fixed. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9768 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/ruby.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Modules/ruby.cxx b/Source/Modules/ruby.cxx index e3e58ca5e..d86b25d03 100644 --- a/Source/Modules/ruby.cxx +++ b/Source/Modules/ruby.cxx @@ -1995,7 +1995,9 @@ public: if ( !isCtor ) Printv( protoTypes, type, " ", NIL ); Printv(protoTypes, methodName, NIL ); Parm* p = Getattr(sibl, "wrap:parms"); - if ( p && isMethod ) p = nextSibling(p); // skip self + if (p && (current == MEMBER_FUNC || current == MEMBER_VAR || + ctor_director) ) + p = nextSibling(p); // skip self Append( protoTypes, "(" ); while(p) {