Class R10K::KeyedFactory
In: lib/r10k/keyed_factory.rb
Parent: Object

This implements a factory by storing classes indexed with a given key and creates objects based on that key.

Methods

generate   new   register   retrieve  

Classes and Modules

Class R10K::KeyedFactory::DuplicateImplementationError
Class R10K::KeyedFactory::UnknownImplementationError

Attributes

implementations  [R]  @!attribute [r] implementations
  @return [Hash<Object, Class>] A hash of keys and the associated
    implementations that this factory can generate.

Public Class methods

Public Instance methods

[Validate]