Class: Riffer::Providers::Repository
- Inherits:
-
Object
- Object
- Riffer::Providers::Repository
- Defined in:
- lib/riffer/providers/repository.rb
Constant Summary collapse
Class Method Summary collapse
-
.find(identifier) ⇒ Class?
Finds a provider class by identifier.
Class Method Details
.find(identifier) ⇒ Class?
Finds a provider class by identifier
11 12 13 |
# File 'lib/riffer/providers/repository.rb', line 11 def find(identifier) REPO.fetch(identifier.to_sym, nil)&.call end |