module MinDI::InjectableContainer::ClassMethods
These methods are available in the scope of your class definition, after you have included MinDI::InjectableContainer
.
Public Instance Methods
injected()
click to toggle source
Set state so subsequently defined services have the container injected into them when they are instantiated. (This is the default state.)
# File lib/mindi.rb 362 def injected 363 @__services_are_injected__ = true 364 end
uninjected()
click to toggle source
Set state so subsequently defined services do not have the container injected into them when they are instantiated.
# File lib/mindi.rb 368 def uninjected 369 @__services_are_injected__ = false 370 end