summaryrefslogtreecommitdiff
path: root/lib/rdoc/ri/store.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/ri/store.rb')
-rw-r--r--lib/rdoc/ri/store.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/rdoc/ri/store.rb b/lib/rdoc/ri/store.rb
index 1fcd313d0f..c3939c493a 100644
--- a/lib/rdoc/ri/store.rb
+++ b/lib/rdoc/ri/store.rb
@@ -7,6 +7,18 @@ require 'fileutils'
# The store manages reading and writing ri data for a project (gem, path,
# etc.) and maintains a cache of methods, classes and ancestors in the
# store.
+#
+# The store maintains a #cache of its contents for faster lookup. After
+# adding items to the store it must be flushed using #save_cache. The cache
+# contains the following structures:
+#
+# @cache = {
+# :class_methods => {}, # class name => class methods
+# :instance_methods => {}, # class name => instance methods
+# :attributes => {}, # class name => attributes
+# :modules => [], # classes and modules in this store
+# :ancestors => {}, # class name => ancestor names
+# }
class RDoc::RI::Store