Module: DevSuite::Utils::FileLoader::Loader
- Includes:
- Construct::Component::Manager
- Defined in:
- lib/dev_suite/utils/file_loader/loader.rb,
lib/dev_suite/utils/file_loader/loader/base.rb,
lib/dev_suite/utils/file_loader/loader/json.rb,
lib/dev_suite/utils/file_loader/loader/text.rb,
lib/dev_suite/utils/file_loader/loader/yaml.rb,
lib/dev_suite/utils/file_loader/loader/loader.rb
Defined Under Namespace
Classes: Base, Json, Text, Yaml
Class Method Summary collapse
- .handle_missing_dependencies(missing_dependencies) ⇒ Object
-
.registry_loaders(registry, loader_symbols) ⇒ Object
Registers the specified loaders with the given registry.
Methods included from Construct::Component::Manager
Class Method Details
.handle_missing_dependencies(missing_dependencies) ⇒ Object
25 26 27 |
# File 'lib/dev_suite/utils/file_loader/loader/loader.rb', line 25 def handle_missing_dependencies(missing_dependencies) Config.configuration.remove_failed_dependency(:loaders, :json, *missing_dependencies) end |
.registry_loaders(registry, loader_symbols) ⇒ Object
Registers the specified loaders with the given registry.
17 18 19 20 21 22 23 |
# File 'lib/dev_suite/utils/file_loader/loader/loader.rb', line 17 def registry_loaders(registry, loader_symbols) loader_classes = registered_components.values_at(*loader_symbols) loader_classes.each do |loader| registry.register(loader) end registry end |