lib/dry/container/mixin.rb in dry-container-0.7.2 vs lib/dry/container/mixin.rb in dry-container-0.8.0

- old
+ new

@@ -1,7 +1,8 @@ +# frozen_string_literal: true -require 'concurrent/hash' +require "concurrent/hash" module Dry class Container PREFIX_NAMESPACE = lambda do |namespace, key, config| [namespace, key].join(config.namespace_separator) @@ -46,11 +47,11 @@ extend ::Dry::Configurable extend hooks_mod setting :registry, ::Dry::Container::Registry.new setting :resolver, ::Dry::Container::Resolver.new - setting :namespace_separator, '.' + setting :namespace_separator, "." @_container = ::Concurrent::Hash.new end end @@ -68,10 +69,10 @@ extend ::Dry::Configurable prepend Initializer setting :registry, ::Dry::Container::Registry.new setting :resolver, ::Dry::Container::Resolver.new - setting :namespace_separator, '.' + setting :namespace_separator, "." def config self.class.config end end