示例#1
0
        public void InitializeLibrary(RubyScope scope)
        {
            KernelOps.Require(scope, this, MutableString.CreateAscii("json/common"));

            _maxNesting      = scope.RubyContext.CreateAsciiSymbol("max_nesting");
            _allowNan        = scope.RubyContext.CreateAsciiSymbol("allow_nan");
            _jsonCreatable   = scope.RubyContext.CreateAsciiSymbol("json_creatable?");
            _jsonCreate      = scope.RubyContext.CreateAsciiSymbol("json_create");
            _createId        = scope.RubyContext.CreateAsciiSymbol("create_id");
            _createAdditions = scope.RubyContext.CreateAsciiSymbol("create_additions");
            _chr             = scope.RubyContext.CreateAsciiSymbol("chr");
        }