public void ForEachClassVariable(bool inherited, Func<RubyModule, string, object, bool>/*!*/ action) {
Context.RequiresClassHierarchyLock();
ForEachAncestor(inherited, delegate(RubyModule/*!*/ module) {
// notification that we entered the module (it could have no class variable):
if (action(module, null, Missing.Value)) return true;
return module.EnumerateClassVariables(action);
});
}