Class: ROM::ConfigurationPluginRegistry Private

Inherits:
PluginRegistryBase show all
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

#cache, #elements

Instance Method Summary collapse

Methods inherited from PluginRegistryBase

#[], #plugin_name, #register

Methods inherited from Registry

#each, element_not_found_error, #key?, #map, #merge, new, #respond_to_missing?, #to_hash

Methods included from Initializer

extended

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

Parameters:

  • name (Symbol)

    The name of the environment plugin

Raises:



143
144
145
# File 'lib/rom/plugin_registry.rb', line 143

def fetch(name)
  self[name] || raise(UnknownPluginError, name)
end