struct

Athena::DependencyInjection::Proxy(O)

Inherits Struct < Value < Object

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

Constructors

new(service_id : String, loader : Proc(O))
Source

Instance methods

instance

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

Source
instantiated?

Returns whether the proxied service has been instantiated yet.

Source
service_id

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

Source
service_type

Returns the type of the proxied service.

Source

Macros

method_missing(call)
Source