예제 #1
0
 protected override bool ForEachAncestor(Func <RubyModule, bool> /*!*/ action)
 {
     // walk up the class hierarchy:
     for (RubyClass c = this; c != null; c = c._superClass)
     {
         if (c.ForEachDeclaredAncestor(action))
         {
             return(true);
         }
     }
     return(false);
 }