Sha256: 1bbbb61fcedd072e9b5b40f9f8caf4815b2353f3a45a9ab0febbaea62734b1a0

Contents?: true

Size: 207 Bytes

Versions: 1

Compression:

Stored size: 207 Bytes

Contents

module Nurse
  class SharedServiceFactory < ServiceFactory
    def attach_to(dependency_manager)
      dependency_manager.share(dependency_key) do |di|
        create_service(di)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nurse-rb-2.0.0 lib/nurse/shared_service_factory.rb