Ejemplo n.º 1
0
        protected RubyClass /*!*/ DefineGlobalClass(string /*!*/ name, Type /*!*/ type, RubyClass /*!*/ super,
                                                    Action <RubyModule> instanceTrait, Action <RubyModule> classTrait, RubyModule[] /*!*/ mixins, Delegate[] factories)
        {
            RubyClass result = _context.DefineLibraryClass(name, type, instanceTrait, classTrait, super, mixins, factories, _builtin);

            _context.ObjectClass.SetConstant(result.Name, result);
            return(result);
        }
Ejemplo n.º 2
0
        protected RubyClass /*!*/ DefineGlobalClass(string /*!*/ name, Type /*!*/ type, int restrictions, RubyClass /*!*/ super,
                                                    Action <RubyModule> instanceTrait, Action <RubyModule> classTrait, Action <RubyModule> constantsInitializer,
                                                    RubyModule /*!*/[] /*!*/ mixins, params Delegate[] factories)
        {
            RubyClass result = _context.DefineLibraryClass(name, type, instanceTrait, classTrait, constantsInitializer, super, mixins, factories, (ModuleRestrictions)restrictions, _builtin);

            PublishModule(name, result);
            return(result);
        }