Class: ROM::ConfigurationPluginRegistry Private
- Inherits:
-
PluginRegistryBase
- Object
- Registry
- PluginRegistryBase
- ROM::ConfigurationPluginRegistry
- Defined in:
- lib/rom/plugin_registry.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
A registry storing environment specific plugins
Instance Attribute Summary
Attributes inherited from Registry
Instance Method Summary collapse
-
#fetch(name) ⇒ Object
Return an environment plugin.
-
#initialize(*args, **kwargs) ⇒ ConfigurationPluginRegistry
constructor
private
A new instance of ConfigurationPluginRegistry.
Methods inherited from PluginRegistryBase
Methods inherited from Registry
#each, element_not_found_error, #key?, #map, #merge, new, #respond_to_missing?, #to_hash
Methods included from Initializer
Constructor Details
#initialize(*args, **kwargs) ⇒ ConfigurationPluginRegistry
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ConfigurationPluginRegistry.
132 133 134 |
# File 'lib/rom/plugin_registry.rb', line 132 def initialize(*args, **kwargs) super(*args, **kwargs, plugin_type: ConfigurationPlugin) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ROM::Registry
Instance Method Details
#fetch(name) ⇒ Object
Return an environment plugin
143 144 145 |
# File 'lib/rom/plugin_registry.rb', line 143 def fetch(name) self[name] || raise(UnknownPluginError, name) end |