Module: ROM::Components::Provider::InstanceMethods Private

Included in:
ClassMethods
Defined in:
lib/rom/components/provider.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#componentsObject



35
36
37
# File 'lib/rom/components/provider.rb', line 35

def components
  @components ||= Registry.new(provider: self)
end

#registry(**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.



40
41
42
43
44
45
46
47
# File 'lib/rom/components/provider.rb', line 40

def registry(**options)
  Registries::Root.new(
    config: config,
    components: components,
    notifications: Notifications.event_bus(:configuration),
    **options
  )
end