Class: ROM::PluginsContainer Private

Inherits:
Registry show all
Defined in:
core/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.

Abstract registry defining common behaviour

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ROM::Registry

Instance Attribute Details

#plugin_typeObject (readonly)

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.



71
# File 'core/lib/rom/plugin_registry.rb', line 71

option :type

Instance Method Details

#register(name, mod, options) ⇒ Object

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.

Assign a plugin to this environment registry

Parameters:

  • name (Symbol)

    The registered plugin name

  • mod (Module)

    The plugin to register

  • options (Hash)

    optional configuration data



80
81
82
# File 'core/lib/rom/plugin_registry.rb', line 80

def register(name, mod, options)
  elements[name] = plugin_type.new(name, mod, **options)
end