Class: Interfacets::ComponentRegistry
- Inherits:
-
Object
- Object
- Interfacets::ComponentRegistry
- Defined in:
- lib/interfacets/component_registry.rb
Instance Method Summary collapse
-
#initialize(config_path:) ⇒ ComponentRegistry
constructor
A new instance of ComponentRegistry.
- #write_client_registry(path:) ⇒ Object
Constructor Details
#initialize(config_path:) ⇒ ComponentRegistry
Returns a new instance of ComponentRegistry.
10 11 12 13 |
# File 'lib/interfacets/component_registry.rb', line 10 def initialize(config_path:) @config_path = config_path @schema_cache = {} end |
Instance Method Details
#write_client_registry(path:) ⇒ Object
15 16 17 18 19 |
# File 'lib/interfacets/component_registry.rb', line 15 def write_client_registry(path:) components = load_components content = generate_registry_content(components) write_atomic(path, content) end |