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); }
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; }