Sha256: 05cc5f27b5862509929937b1970913d769f8db150be1245defcbdffcc5e7b434
Contents?: true
Size: 908 Bytes
Versions: 4
Compression:
Stored size: 908 Bytes
Contents
require 'concurrent' require 'dry-configurable' require 'dry/container/error' require 'dry/container/item' require 'dry/container/namespace' require 'dry/container/registry' require 'dry/container/resolver' require 'dry/container/namespace_dsl' require 'dry/container/mixin' require 'dry/container/version' # A collection of micro-libraries, each intended to encapsulate # a common task in Ruby 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dry-container-0.3.4 | lib/dry/container.rb |
dry-container-0.3.3 | lib/dry/container.rb |
dry-container-0.3.2 | lib/dry/container.rb |
dry-container-0.3.1 | lib/dry/container.rb |