Moved constant renames from the c++ code to ruby.swg to reuse the new %rename functionality.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8404 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Charlie Savage 2006-01-13 00:51:49 +00:00
commit f4d48d7bfc
2 changed files with 8 additions and 7 deletions

View file

@ -7,6 +7,11 @@
/* ------------------------------------------------------------
* The Ruby global rename rules
* ------------------------------------------------------------ */
/* Class names are CamelCase */
%rename("%(ctitle)s", %isclass) "";
/* Constants are UPPER_CASE */
%rename("%(upper)s", %isconstant) "";
/* Method names should be changed so that they are
lower_case_with_underscores */