Sha256: 01466e5a81d275f8c3937c33606117420677d1a82b0c82ed39dd2d15eaf58ccf
Contents?: true
Size: 851 Bytes
Versions: 1
Compression:
Stored size: 851 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Support module DependencyContainer module Commands class AssertValidContainer < Support::Command ## # @!attribute [r] container # @return [Module] # attr_reader :container ## # @param container [Module] # @return [void] # def initialize(container:) @container = container end ## # @return [void] # @raise [ConvenientService::Support::DependencyContainer::Errors::NotExportableModule] # def call raise Errors::NotExportableModule.new(mod: container) unless Utils::Module.include_module?(container, DependencyContainer::Export) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
convenient_service-0.12.0 | lib/convenient_service/support/dependency_container/commands/assert_valid_container.rb |