Class: ROM::PluginsContainer Private
- 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.
Abstract registry defining common behaviour
Instance Attribute Summary collapse
- #plugin_type ⇒ Object readonly private
Attributes inherited from Registry
Instance Method Summary collapse
-
#register(name, mod, options) ⇒ Object
private
Assign a plugin to this environment registry.
Methods inherited from Registry
[], build, #each, element_not_found_error, #fetch, #key?, #map, #merge, new, #respond_to_missing?, #to_hash, #type
Methods included from Initializer
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ROM::Registry
Instance Attribute Details
#plugin_type ⇒ Object (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 '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
80 81 82 |
# File 'lib/rom/plugin_registry.rb', line 80 def register(name, mod, ) elements[name] = plugin_type.new(name, mod, **) end |