예제 #1
0
 internal void FrozenClassCheck()
 {
     if (IsFrozen)
     {
         string desc = "something(?!)";
         if (IsSingleton)
         {
             desc = "object";
         }
         else
         {
             if (this is RModule || this is RIncClass)
             {
                 desc = "module";
             }
             else if (this is RClass)
             {
                 desc = "class";
             }
         }
         ruby.ErrorFrozen(desc);
     }
 }