Hi, I'm new here and this is my 1st post, so no hard feelings if my question is really dumb.
 
SO my *.i file looks like this
%module(directors="1") mymod
%{
 #include "rubywrapper_swig.h"
%}
%feature("nodirector");
%feature("director") MyWorld::fun;
 
class MyWorld{
public:
 MyWorld();
 virtual ~MyWorld();
 virtual void fun();
};
void myLoop(MyWorld* world);
for testing purpose, no real loops in myLoop:
void MyWorld::fun() {}
void myLoop(MyWorld* world) {
 world->fun();
}
and testing script is pretty simple
require 'mymod'
include Mymod
class World < MyWorld
 def mainLogical
  puts 'testing...'
 end
end
world = World.new
mainLoop(world)
So, I expect a ''testing...' print rather than nothing, but I got nothing...
I'm using ruby 1.9.2, swigwin 2.0.2
please tell me what's wrong?
 
Thanks