Method: ConfigurationService::ProviderRegistry#lookup

Defined in:
lib/configuration_service/provider_registry.rb

#lookup(identifier) ⇒ Class?

Look up a configuration service provider

Parameters:

  • identifier (String)

    the unique identifier for the configuration service provider. The provider must already have been registered with #register.

Returns:

  • (Class)

    the configuration service provider class

  • (nil)

    if no provider has been registered with the given identifier



41
42
43
# File 'lib/configuration_service/provider_registry.rb', line 41

def lookup(identifier)
  @providers[identifier]
end