PageRenderTime 24ms CodeModel.GetById 23ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/rel-1-3-29/SWIG/Lib/ruby/ruby.swg

#
Unknown | 67 lines | 51 code | 16 blank | 0 comment | 0 complexity | 63a8d4effeeb04502d250692d647c3c2 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1/* ------------------------------------------------------------
 2 * ruby.swg
 3 *
 4 * Ruby configuration module.
 5 * ------------------------------------------------------------ */
 6
 7/* ------------------------------------------------------------
 8 * The Ruby auto rename rules 
 9 * ------------------------------------------------------------ */
10#if defined(SWIG_RUBY_AUTORENAME)
11/* Class names are CamelCase */
12%rename("%(camelcase)s", %$isclass) ""; 
13
14/* Constants created by %constant or #define are UPPER_CASE */
15%rename("%(uppercase)s", %$isconstant) "";
16
17/* SWIG only considers static class members with inline intializers
18	 to be constants.  For examples of what is and isn't considered
19	 a constant by SWIG see naming.i in the Ruby test suite. */
20%rename("%(uppercase)s", %$ismember, %$isvariable,%$isimmutable,%$isstatic,%$hasvalue,%$hasconsttype) ""; 
21
22/* Enums are mapped to constants but we all we do is make sure the
23   first letter is uppercase */
24%rename("%(firstuppercase)s", %$isenumitem) "";
25
26/* Method names should be lower_case_with_underscores */
27%rename("%(undercase)s", %$isfunction, %$not %$ismemberget, %$not %$ismemberset) "";
28#endif
29
30/* ------------------------------------------------------------
31 *  Inner macros 
32 * ------------------------------------------------------------ */
33%include <rubymacros.swg>
34
35
36/* ------------------------------------------------------------
37 *  The runtime part
38 * ------------------------------------------------------------ */
39%include <rubyruntime.swg>
40
41/* ------------------------------------------------------------
42 *  Special user directives
43 * ------------------------------------------------------------ */
44%include <rubyuserdir.swg>
45
46/* ------------------------------------------------------------
47 *  Typemap specializations
48 * ------------------------------------------------------------ */
49%include <rubytypemaps.swg>
50
51/* ------------------------------------------------------------
52 *  Overloaded operator support
53 * ------------------------------------------------------------ */
54%include <rubyopers.swg>
55
56/* ------------------------------------------------------------
57 * Warnings for Ruby keywords 
58 * ------------------------------------------------------------ */
59%include <rubykw.swg>
60
61/* ------------------------------------------------------------
62 * The Ruby initialization function 
63 * ------------------------------------------------------------ */
64%include <rubyinit.swg>
65
66
67