ruby: fix detection of virtual methods in gccxml parser