Sha256: 4a54575742738ff3ff7acb94c9767e43776525fd97ead2729bc910e483e22ca0

Contents?: true

Size: 460 Bytes

Versions: 1

Compression:

Stored size: 460 Bytes

Contents

module Dry
  module System
    class Container
      # Incuded only in the Test environment
      # Sending the message enable_stubs! allow you to stub components after
      # finalize your container in your tests.
      #
      # @api private
      module Stubs
        def finalize!(&block)
          super(freeze: false, &block)
        end
      end

      def self.enable_stubs!
        extend ::Dry::System::Container::Stubs
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dry-system-0.7.2 lib/dry/system/stubs.rb