public static object GetTaggedClasses(RubyModule /*!*/ self) { object taggedClasses; if (!self.TryGetClassVariable(_TaggedClasses, out taggedClasses)) { taggedClasses = CreateDefaultTagMapping(self.Context); self.SetClassVariable(_TaggedClasses, taggedClasses); } return(taggedClasses); }
public static void SetBufferSize(RubyModule hpricotModule, Int32 bufferSize) { hpricotModule.SetClassVariable("@@buffer_size", bufferSize); }