Method: ROM::PluginRegistry#type
- Defined in:
- lib/rom/plugin_registry.rb
#type(type) ⇒ 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.
34 35 36 37 38 39 40 41 42 |
# File 'lib/rom/plugin_registry.rb', line 34 def type(type) types.fetch_or_store(type) do if Plugins[type][:adapter] AdapterPluginsContainer.new(type) else PluginsContainer.new({}, type: type) end end end |