Module: Injectable::Registerable
Overview
Instance Method Summary collapse
-
#register_implementation(name, *classes) ⇒ Object
Register that instances of klass will perform the given role in this container context.
Instance Method Details
#register_implementation(name, *classes) ⇒ Object
Register that instances of klass will perform the given role in this container context.
16 17 18 |
# File 'lib/injectable/registerable.rb', line 16 def register_implementation(name, *classes) implementations[name] = classes.flatten end |