Пример #1
0
 internal RClass DefineClass(string name, RMetaObject spr)
 {
     klass = new RSingletonClass(spr.klass);
     klass.AttachSingleton(this);
     ruby.Funcall(spr, "inherited", this);
     lock (ruby.class_tbl.SyncRoot)
     {
         ruby.class_tbl[ruby.intern(name)] = this;
     }
     return(this);
 }
Пример #2
0
 internal RClass DefineClass(string name, RMetaObject spr)
 {
     klass = new RSingletonClass(spr.klass);
     klass.AttachSingleton(this);
     ruby.Funcall(spr, "inherited", this);
     lock (ruby.class_tbl.SyncRoot)
     {
         ruby.class_tbl[ruby.intern(name)] = this;
     }
     return this;
 }