Home | History | Annotate | Download | only in ruby
      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 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  * Documentation for common Ruby methods
     63  * ------------------------------------------------------------ */
     64 %include <rubyautodoc.swg>
     65 
     66 /* ------------------------------------------------------------
     67  * The Ruby initialization function
     68  * ------------------------------------------------------------ */
     69 %include <rubyinit.swg>
     70 
     71 
     72 
     73