Module: SleepingKingStudios::Docs::Registry
- Defined in:
- lib/sleeping_king_studios/docs/registry.rb
Overview
Dependency injection provider wrapping the YARD registry.
Class Method Summary collapse
-
.clear ⇒ Object
Clears the cached registry, if any.
-
.instance ⇒ Array
Caches and returns the contents of the YARD registry.
Class Method Details
.clear ⇒ Object
Clears the cached registry, if any.
11 12 13 |
# File 'lib/sleeping_king_studios/docs/registry.rb', line 11 def self.clear @instance = nil end |
.instance ⇒ Array
Caches and returns the contents of the YARD registry.
18 19 20 |
# File 'lib/sleeping_king_studios/docs/registry.rb', line 18 def self.instance @instance ||= [::YARD::Registry.root, *::YARD::Registry.to_a] end |