Skip to content

Commit 3b96857

Browse files
committed
Improve store documentation
1 parent cf7aca2 commit 3b96857

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/rdoc/ri/store.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@
77
# The store manages reading and writing ri data for a project (gem, path,
88
# etc.) and maintains a cache of methods, classes and ancestors in the
99
# store.
10+
#
11+
# The store maintains a #cache of its contents for faster lookup. After
12+
# adding items to the store it must be flushed using #save_cache. The cache
13+
# contains the following structures:
14+
#
15+
# @cache = {
16+
# :class_methods => {}, # class name => class methods
17+
# :instance_methods => {}, # class name => instance methods
18+
# :attributes => {}, # class name => attributes
19+
# :modules => [], # classes and modules in this store
20+
# :ancestors => {}, # class name => ancestor names
21+
# }
1022

1123
class RDoc::RI::Store
1224

0 commit comments

Comments
 (0)