Sha256: 11230c950b20d95d99d61af6ded4d43a796709d179236f01346afdae71c84eaf
Contents?: true
Size: 656 Bytes
Versions: 1
Compression:
Stored size: 656 Bytes
Contents
require 'thread_safe' require 'dry/container/error' require 'dry/container/item' 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.1.0 | lib/dry/container.rb |