Esempio n. 1
0
        public static Int32?GetBufferSize(RubyModule hpricotModule)
        {
            Object bufferSize;

            if (hpricotModule.TryGetClassVariable("@@buffer_size", out bufferSize))
            {
                return((int)bufferSize);
            }
            return(null);
        }
Esempio n. 2
0
        public static object GetTaggedClasses(RubyModule /*!*/ self)
        {
            object taggedClasses;

            if (!self.TryGetClassVariable(_TaggedClasses, out taggedClasses))
            {
                taggedClasses = CreateDefaultTagMapping(self.Context);
                self.SetClassVariable(_TaggedClasses, taggedClasses);
            }
            return(taggedClasses);
        }