-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstore.rbs
More file actions
24 lines (16 loc) · 720 Bytes
/
store.rbs
File metadata and controls
24 lines (16 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module TinyAdmin
class Store
include Utils
attr_reader navbar: Array[Section?]
attr_reader pages: Hash[String, Hash[Symbol, untyped]]
attr_reader resources: Hash[String, Hash[Symbol, untyped]]
attr_reader settings: untyped
def initialize: (untyped) -> void
def prepare_sections: (Array[untyped], logout: TinyAdmin::Section?) -> void
private
def add_content_section: (String, Hash[Symbol, untyped]) -> TinyAdmin::Section
def add_page_section: (String, Hash[Symbol, untyped]) -> TinyAdmin::Section
def add_resource_section: (String, Hash[Symbol, untyped]) -> TinyAdmin::Section?
def add_url_section: (String, Hash[Symbol, untyped]) -> TinyAdmin::Section
end
end