%module template_enum %warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo; /* Ruby, wrong class name */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo; /* Ruby, wrong class name */ %inline %{ template class foo { public: enum { FOO, BAR }; }; %} %template(foo_i) foo; %template(foo_d) foo;