summaryrefslogtreecommitdiff
path: root/Lib/ruby/ruby.swg
diff options
context:
space:
mode:
authorCharlie Savage <cfis@interserv.com>2006-01-13 00:51:49 +0000
committerCharlie Savage <cfis@interserv.com>2006-01-13 00:51:49 +0000
commitf4d48d7bfc120e46fb5479d215c54faed5fa7b0e (patch)
treefc55678aa446d92a152b7c125f323156ffa95691 /Lib/ruby/ruby.swg
parent16c4a594e7913cd0dc88a13c09afe97df79b614c (diff)
downloadswig-f4d48d7bfc120e46fb5479d215c54faed5fa7b0e.tar.gz
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
Diffstat (limited to 'Lib/ruby/ruby.swg')
-rw-r--r--Lib/ruby/ruby.swg5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/ruby/ruby.swg b/Lib/ruby/ruby.swg
index 37305941b..90e06fd87 100644
--- a/Lib/ruby/ruby.swg
+++ b/Lib/ruby/ruby.swg
@@ -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 */