1 2 3 4 5 6 7 8 9 10
%module exception_classname %warnfilter(SWIGWARN_RUBY_WRONG_NAME); %inline %{ class Exception { public: int testfunc() { return 42; } }; %}