-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstore.rbs
More file actions
48 lines (46 loc) · 1.55 KB
/
store.rbs
File metadata and controls
48 lines (46 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
%a{annotate:rdoc:skip}
module RDoc
# <!-- rdoc-file=lib/rdoc/store.rb -->
# A set of rdoc data for a single project (gem, path, etc.).
#
# The store manages reading and writing ri data for a project 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 = {
# :ancestors => {}, # class name => ancestor names
# :attributes => {}, # class name => attributes
# :class_methods => {}, # class name => class methods
# :instance_methods => {}, # class name => instance methods
# :modules => [], # classes and modules in this store
# :pages => [], # page names
# }
#
class Store
# <!--
# rdoc-file=lib/rdoc/store.rb
# - new(path = nil, type = nil)
# -->
# Creates a new Store of `type` that will load or save to `path`
#
def initialize: (Options, ?path: String? , ?type: Symbol?) -> void
# <!--
# rdoc-file=lib/rdoc/store.rb
# - find_class_or_module(name)
# -->
# Finds the class or module with `name`
#
def find_class_or_module: (String) -> ClassModule?
# <!--
# rdoc-file=lib/rdoc/store.rb
# - load_all()
# -->
# Loads all items from this store into memory. This recreates a documentation
# tree for use by a generator
#
def load_all: () -> void
end
end