Sha256: 54dee4de919999f6bfe740f26ba3c730a515422965dbc13bc608e7ecb19ad613
Contents?: true
Size: 749 Bytes
Versions: 1
Compression:
Stored size: 749 Bytes
Contents
require 'thread_safe' require 'dry-configurable' require 'dry/container/error' require 'dry/container/item' require 'dry/container/registry' require 'dry/container/resolver' require 'dry/container/mixin' require 'dry/container/version' module Dry # Inversion of Control (IoC) container # # @example # # container = Dry::Container.new # container.register(:item, 'item') # container.resolve(:item) # => 'item' # # container.register(:item1, -> { 'item' }) # container.resolve(:item1) # => 'item' # # container.register(:item2, -> { 'item' }, call: false) # container.resolve(:item2) # => #<Proc:0x007f33b169e998@(irb):10 (lambda)> # # @api public class Container include Mixin end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-container-0.2.1 | lib/dry/container.rb |