swig/Lib/ruby/ruby.swg

62 lines
2.1 KiB
Text

/* ------------------------------------------------------------
* ruby.swg
*
* Ruby configuration module.
* ------------------------------------------------------------ */
/* ------------------------------------------------------------
* 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 */
%rename("%(utitle)s", %isfunction, %ismember) "";
/* ------------------------------------------------------------
* Inner macros
* ------------------------------------------------------------ */
%include <rubymacros.swg>
/* ------------------------------------------------------------
* Error manipulation
* ------------------------------------------------------------ */
%include <rubyerrors.swg>
/* ------------------------------------------------------------
* The runtime part
* ------------------------------------------------------------ */
%include <rubyruntime.swg>
/* ------------------------------------------------------------
* Special user directives
* ------------------------------------------------------------ */
%include <rubyuserdir.swg>
/* ------------------------------------------------------------
* Typemap specializations
* ------------------------------------------------------------ */
%include <rubytypemaps.swg>
/* ------------------------------------------------------------
* Overloaded operator support
* ------------------------------------------------------------ */
%include <rubyopers.swg>
/* ------------------------------------------------------------
* Warnings for Ruby keywords
* ------------------------------------------------------------ */
%include <rubykw.swg>
/* ------------------------------------------------------------
* The Ruby initialization function
* ------------------------------------------------------------ */
%include <rubyinit.swg>