struct Athena::DependencyInjection::Proxy(O)


Represents a lazily initialized service. See the "Service Proxies" section within ADI::Register.

Defined in:


Instance Method Summary

Macro Summary

Constructor Detail

def : String, loader : Proc(O)) #

[View source]

Instance Method Detail

def instance #

Returns proxied service O; instantiating it if it has not already been.

[View source]
def instantiated? : Bool #

Returns whether the proxied service has been instantiated yet.

[View source]
def service_id : String #

Returns the service ID (name) of the proxied service.

[View source]
def service_type : O.class #

Returns the type of the proxied service.

[View source]

Macro Detail

macro method_missing(call) #

[View source]