lib/dry/system/loader.rb
# Returns component's instance
#
# Provided optional args are passed to object's constructor
#
# @param [Array] args Optional constructor args
#
# @return [Object]
#
# @api public
Returns component's instance
Provided optional args are passed to object's constructor
Returns component ' s instance Provided optional args are passed to object ' s constructor
def call(*args)
        if singleton?(constant)
          constant.instance(*args)
        else
          constant.new(*args)
        end
      end
def call ( * args ) if singleton? ( constant ) constant . instance ( * args ) else constant . new ( * args ) end end
Returns component's instance
Provided optional args are passed to object's constructor
Returns component ' s instance Provided optional args are passed to object ' s constructor
None
Object
args
<not_specific>
<not_specific>
args Optional constructor args
args Optional constructor args
api
None