Sha256: 12a193c8048fe50eddd378d4cb69777aabf06122ec7a7a26e7b82852eec40d69
Contents?: true
Size: 613 Bytes
Versions: 3
Compression:
Stored size: 613 Bytes
Contents
# frozen_string_literal: true module Dry module Core # Thread-safe object registry # # @example # # container = Dry::Core::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 Container::Mixin end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dry-core-1.0.2 | lib/dry/core/container.rb |
dry-core-1.0.1 | lib/dry/core/container.rb |
dry-core-1.0.0 | lib/dry/core/container.rb |